X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/c1095d51e3e3323455ba758ac7ad0b5988c35244..3899282dbba9860e0cc121ea698a82217bed78ca:/projects/stargazer/plugins/store/postgresql/postgresql_store_tariffs.cpp?ds=sidebyside diff --git a/projects/stargazer/plugins/store/postgresql/postgresql_store_tariffs.cpp b/projects/stargazer/plugins/store/postgresql/postgresql_store_tariffs.cpp index ab78f00f..d4fdd390 100644 --- a/projects/stargazer/plugins/store/postgresql/postgresql_store_tariffs.cpp +++ b/projects/stargazer/plugins/store/postgresql/postgresql_store_tariffs.cpp @@ -288,13 +288,14 @@ if (tuples != 1) return -1; } +int32_t id; + { std::stringstream tuple; tuple << PQgetvalue(result, 0, 0); PQclear(result); - int32_t id; tuple >> id; }