From 6002b975544934cf8127040257ce630d8bc0d279 Mon Sep 17 00:00:00 2001 From: Richard Knight Date: Fri, 9 Jul 2021 17:01:23 +0100 Subject: fixed really idiotic locking order --- src/postgresql.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/postgresql.cpp') diff --git a/src/postgresql.cpp b/src/postgresql.cpp index 681c133..882081f 100644 --- a/src/postgresql.cpp +++ b/src/postgresql.cpp @@ -61,7 +61,7 @@ pqxx::result PostgresConnection::Query(char* sql) { return result; } -MYFLT PostgresConnection::Scalar(char* sql, int row=0, int col=0) { +MYFLT PostgresConnection::Scalar(char* sql, int row, int col) { pqxx::result result = Query(sql); // checks as libpqxx not throwing if this happens @@ -75,7 +75,7 @@ MYFLT PostgresConnection::Scalar(char* sql, int row=0, int col=0) { return result[row][col].as(); } -char* PostgresConnection::ScalarString(char* sql, int row=0, int col=0) { +char* PostgresConnection::ScalarString(char* sql, int row, int col) { pqxx::result result = Query(sql); // checks as libpqxx not throwing if this happens -- cgit v1.2.3