| 1441 | } |
| 1442 | |
| 1443 | static sqlite3_stmt *get_sqlrow_stmt(Lua L) |
| 1444 | { |
| 1445 | dbstmt_t *stmt = NULL; |
| 1446 | if (lua_getmetatable(L, -1) == 0) return NULL; |
| 1447 | lua_getfield(L, -1, "__metatable"); |
| 1448 | if (luabb_type(L, -1) == DBTYPES_DBSTMT) stmt = lua_touserdata(L, -1); |
| 1449 | lua_pop(L, 2); |
| 1450 | return stmt ? stmt->stmt : NULL; |
| 1451 | } |
| 1452 | |
| 1453 | static int stmt_sql_step(Lua L, dbstmt_t *stmt) |
| 1454 | { |
no test coverage detected