summaryrefslogtreecommitdiff
path: root/lib/SQL.cc
diff options
context:
space:
mode:
authorpixel <pixel>2007-04-12 18:08:19 +0000
committerpixel <pixel>2007-04-12 18:08:19 +0000
commit59dbf59fdad62434e8a736c4d791f22a16ad6c2e (patch)
treea4be246cdae35fabbb67f9380200649ad7bfb1e4 /lib/SQL.cc
parentd8b98aa297f68e579b8ec98ee12d98fc64315318 (diff)
Fix...
Diffstat (limited to 'lib/SQL.cc')
-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;