diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/LuaSQL.cc | 6 |
1 files 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; |