summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorpixel <pixel>2007-04-12 21:23:41 +0000
committerpixel <pixel>2007-04-12 21:23:41 +0000
commitaf23cf10c21f13c0cd1efefeca8862f154caa046 (patch)
treef7bfde6f141ff5d38360d5e22d2c32b64e13e8a6 /lib
parentd683baaae1bec654f17ac596b2f5f77505954a0d (diff)
Third and last attempt.
Diffstat (limited to 'lib')
-rw-r--r--lib/LuaSQL.cc6
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;