fixed compilation and tests

This commit is contained in:
2025-11-23 11:02:17 +01:00
parent 78abf16f28
commit 19b0adf737
8 changed files with 74 additions and 62 deletions
@@ -125,7 +125,7 @@ std::string postgres_connection::generate_statement_name(const sql::query_contex
utils::result<std::unique_ptr<sql::statement_impl>, utils::error> postgres_connection::prepare(const sql::query_context &context) {
auto statement_name = postgres_connection::generate_statement_name(context);
PGresult *result = PQprepare(conn_, statement_name.c_str(), context.sql.c_str(),
const PGresult *result = PQprepare(conn_, statement_name.c_str(), context.sql.c_str(),
static_cast<int>(context.bind_vars.size()), nullptr);
if (is_result_error(result)) {