diff options
-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 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()); |