From af23cf10c21f13c0cd1efefeca8862f154caa046 Mon Sep 17 00:00:00 2001 From: pixel Date: Thu, 12 Apr 2007 21:23:41 +0000 Subject: Third and last attempt. --- lib/LuaSQL.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/LuaSQL.cc b/lib/LuaSQL.cc index 6c0bd42..8e69ebb 100644 --- a/lib/LuaSQL.cc +++ b/lib/LuaSQL.cc @@ -84,9 +84,9 @@ int sLua_SQLConnection::SQLConnection_proceed(Lua * L, int n, SQLConnection * c, case SQLCONNECTION_FETCHROW: r = c->fetchrow(); L->newtable(); - for (i = r->begin(); i != r->end(); i++) { - L->push((*i).first()); - L->push((*i).second()); + for (i = r.begin(); i != r.end(); i++) { + L->push(i->first); + L->push(i->second); L->settable(); } break; -- cgit v1.2.3