summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/SQL.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/SQL.cc b/lib/SQL.cc
index e599f95..98b8824 100644
--- a/lib/SQL.cc
+++ b/lib/SQL.cc
@@ -46,8 +46,8 @@ void SQLConnection::query(String q) throw(GeneralException) {
nr = mysql_num_rows(res);
nf = mysql_num_fields(res);
fields = mysql_fetch_fields(res);
- na = mysql_affected_rows(res);
- ii = mysql_insert_id(res);
+ na = mysql_affected_rows(&con);
+ ii = mysql_insert_id(&con);
} else {
nr = 0;
nf = 0;