- tuple = lua_toint(ps, 1);
- field = lua_toint(ps, 2);
-
- r = PQgetvalue(pgres, lua_toint(ps, 1), lua_toint(ps, 2));
- len = PQgetlength(pgres, tuple, field);
-
- lua_pushlstring(ps, r, len); /* safe?! */
+ lua_pushstring(ps, dbgetvalue(pgres, lua_toint(ps, 1)), len);