summaryrefslogtreecommitdiff
path: root/lib/LuaSQL.cc
diff options
context:
space:
mode:
authorpixel <pixel>2007-04-12 21:21:43 +0000
committerpixel <pixel>2007-04-12 21:21:43 +0000
commitd683baaae1bec654f17ac596b2f5f77505954a0d (patch)
tree7f02f682100aa0ddf3bb3140812a36cffda7d546 /lib/LuaSQL.cc
parentfbca7f0a31ee0883df525676827a2311699648f2 (diff)
Second tentative...
Diffstat (limited to 'lib/LuaSQL.cc')
-rw-r--r--lib/LuaSQL.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/LuaSQL.cc b/lib/LuaSQL.cc
index 6a7ca93..6c0bd42 100644
--- a/lib/LuaSQL.cc
+++ b/lib/LuaSQL.cc
@@ -85,8 +85,8 @@ int sLua_SQLConnection::SQLConnection_proceed(Lua * L, int n, SQLConnection * c,
r = c->fetchrow();
L->newtable();
for (i = r->begin(); i != r->end(); i++) {
- L->push(i->first());
- L->push(i->second());
+ L->push((*i).first());
+ L->push((*i).second());
L->settable();
}
break;
@@ -97,7 +97,7 @@ int sLua_SQLConnection::SQLConnection_proceed(Lua * L, int n, SQLConnection * c,
L->push((lua_Number) c->insertid());
break;
case SQLCONNECTION_ERRNO:
- L->push((lua_Number) c->errono());
+ L->push((lua_Number) c->errno());
break;
case SQLCONNECTION_ERROR:
L->push(c->error());