| 1424 | } |
| 1425 | |
| 1426 | static void set_sqlrow_stmt(Lua L) |
| 1427 | { |
| 1428 | /* |
| 1429 | ** stack: |
| 1430 | ** 1. row (lua table) |
| 1431 | ** 2. stmt |
| 1432 | ** tag stmt to row by: |
| 1433 | ** newtbl = {} |
| 1434 | ** newtbl.__metatable = stmt |
| 1435 | ** setmetatable(row, newtbl) |
| 1436 | */ |
| 1437 | lua_newtable(L); |
| 1438 | lua_pushvalue(L, -3); |
| 1439 | lua_setfield(L, -2, "__metatable"); |
| 1440 | lua_setmetatable(L, -2); |
| 1441 | } |
| 1442 | |
| 1443 | static sqlite3_stmt *get_sqlrow_stmt(Lua L) |
| 1444 | { |
no test coverage detected