Skip to content
Snippets Groups Projects

FIX: Transaction::GetResultSet() now always returns a good reference

Merged Daniel Hornung requested to merge fix-11 into dev
5 files
+ 11
10
Compare changes
  • Side-by-side
  • Inline
Files
5
+ 3
3
@@ -97,7 +97,7 @@ inline auto load_string_file(const path &path) -> std::string {
/**
* @brief Return the environment variable KEY, or FALLBACK if it does not exist.
*/
inline auto get_env_var(const char *key, const char *fallback) -> const char * {
inline auto get_env_fallback(const char *key, const char *fallback) -> const char * {
const char *val = getenv(key);
if (val == nullptr) {
return fallback;
@@ -110,8 +110,8 @@ inline auto get_env_var(const char *key, const char *fallback) -> const char * {
* @brief Return the value of an environment variable or - if undefined - the
* fallback value.
*/
inline auto get_env_var(const std::string &key, const std::string &fallback) -> const std::string {
const char *val = get_env_var(key.c_str(), fallback.c_str());
inline auto get_env_fallback(const std::string &key, const std::string &fallback) -> const std::string {
const char *val = get_env_fallback(key.c_str(), fallback.c_str());
auto const result = std::string(val);
return result;
Loading