From 59dbf59fdad62434e8a736c4d791f22a16ad6c2e Mon Sep 17 00:00:00 2001 From: pixel Date: Thu, 12 Apr 2007 18:08:19 +0000 Subject: Fix... --- lib/SQL.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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; -- cgit v1.2.3