aboutsummaryrefslogtreecommitdiff
path: root/src/mysql.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/mysql.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/mysql.cpp')
-rw-r--r--src/mysql.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mysql.cpp b/src/mysql.cpp
index 040670e..71ea16c 100644
--- a/src/mysql.cpp
+++ b/src/mysql.cpp
@@ -62,7 +62,7 @@ mysql::ResultSet* MySQLConnection::Query(char* sql) {
return result;
}
-MYFLT MySQLConnection::Scalar(char* sql, int row=0, int col=0) {
+MYFLT MySQLConnection::Scalar(char* sql, int row, int col) {
mysql::ResultSet* res = Query(sql);
mysql::ResultSetMetaData* meta = res->getMetaData();
int colCount = meta->getColumnCount();
@@ -78,7 +78,7 @@ MYFLT MySQLConnection::Scalar(char* sql, int row=0, int col=0) {
return result;
}
-char* MySQLConnection::ScalarString(char* sql, int row=0, int col=0) {
+char* MySQLConnection::ScalarString(char* sql, int row, int col) {
mysql::ResultSet* res = Query(sql);
mysql::ResultSetMetaData* meta = res->getMetaData();