diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/SQL.cc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |