diff options
author | pixel <pixel> | 2007-04-12 21:23:41 +0000 |
---|---|---|
committer | pixel <pixel> | 2007-04-12 21:23:41 +0000 |
commit | af23cf10c21f13c0cd1efefeca8862f154caa046 (patch) | |
tree | f7bfde6f141ff5d38360d5e22d2c32b64e13e8a6 | |
parent | d683baaae1bec654f17ac596b2f5f77505954a0d (diff) |
Third and last attempt.
-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; |