diff options
author | Richard Knight <q@1bpm.net> | 2021-07-09 17:01:23 +0100 |
---|---|---|
committer | Richard Knight <q@1bpm.net> | 2021-07-09 17:01:23 +0100 |
commit | 6002b975544934cf8127040257ce630d8bc0d279 (patch) | |
tree | db1cd36a0bcc220cbd8836e23c01d80f5e70e450 /src/sqlite3.cpp | |
parent | 9c6d7766e9fceca9e988cfb057bee4b820840e33 (diff) | |
download | csound-sqldb-6002b975544934cf8127040257ce630d8bc0d279.tar.gz csound-sqldb-6002b975544934cf8127040257ce630d8bc0d279.tar.bz2 csound-sqldb-6002b975544934cf8127040257ce630d8bc0d279.zip |
fixed really idiotic locking order
Diffstat (limited to 'src/sqlite3.cpp')
-rw-r--r-- | src/sqlite3.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sqlite3.cpp b/src/sqlite3.cpp index 824e165..0fd96e3 100644 --- a/src/sqlite3.cpp +++ b/src/sqlite3.cpp @@ -53,7 +53,7 @@ sqlite3_stmt* SqliteConnection::Query(char* sql) { return stmt; } -MYFLT SqliteConnection::Scalar(char* sql, int row=0, int col=0) { +MYFLT SqliteConnection::Scalar(char* sql, int row, int col) { sqlite3_stmt *stmt = Query(sql); int colCount = sqlite3_column_count(stmt); int rc = sqlite3_step(stmt); @@ -76,7 +76,7 @@ MYFLT SqliteConnection::Scalar(char* sql, int row=0, int col=0) { throw std::runtime_error("no result"); } -char* SqliteConnection::ScalarString(char* sql, int row=0, int col=0) { +char* SqliteConnection::ScalarString(char* sql, int row, int col) { sqlite3_stmt *stmt = Query(sql); int colCount = sqlite3_column_count(stmt); int rc = sqlite3_step(stmt); |