aboutsummaryrefslogtreecommitdiff
path: root/src/postgresql.cpp
diff options
context:
space:
mode:
authorRichard Knight <q@1bpm.net>2021-07-09 17:01:23 +0100
committerRichard Knight <q@1bpm.net>2021-07-09 17:01:23 +0100
commit6002b975544934cf8127040257ce630d8bc0d279 (patch)
treedb1cd36a0bcc220cbd8836e23c01d80f5e70e450 /src/postgresql.cpp
parent9c6d7766e9fceca9e988cfb057bee4b820840e33 (diff)
downloadcsound-sqldb-6002b975544934cf8127040257ce630d8bc0d279.tar.gz
csound-sqldb-6002b975544934cf8127040257ce630d8bc0d279.tar.bz2
csound-sqldb-6002b975544934cf8127040257ce630d8bc0d279.zip
fixed really idiotic locking order
Diffstat (limited to 'src/postgresql.cpp')
-rw-r--r--src/postgresql.cpp4
1 files changed, 2 insertions, 2 deletions
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<MYFLT>();
}
-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