From d75969cc9e9d5c1b3d7ee06c1f00ebcb439062e1 Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Fri, 3 Jan 2025 11:51:29 +0100 Subject: [PATCH] Fix: It appears older VC interprets a C string as boolean here? --- src/middle-pgsql.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/middle-pgsql.cpp b/src/middle-pgsql.cpp index e1a47547a..cc17d8e56 100644 --- a/src/middle-pgsql.cpp +++ b/src/middle-pgsql.cpp @@ -1167,7 +1167,8 @@ void init_params(params_t *params, options_t const &options) params->set("prefix", options.prefix); params->set("schema", schema); - params->set("unlogged", options.droptemp ? "UNLOGGED" : ""); + params->set("unlogged", + options.droptemp ? std::string{"UNLOGGED"} : std::string{""}); params->set("data_tablespace", tablespace_clause(options.tblsslim_data)); params->set("index_tablespace", tablespace_clause(options.tblsslim_index)); params->set("way_node_index_id_shift", static_cast(5));