| 2086 | } |
| 2087 | |
| 2088 | static int luabb_carray_bind_string(Lua L, int lua_idx, sqlite3_stmt *stmt, int sql_idx) |
| 2089 | { |
| 2090 | int count = lua_objlen(L, lua_idx); |
| 2091 | const char *strings[count]; |
| 2092 | for (int i = 1; i <= count; ++i) { |
| 2093 | lua_rawgeti(L, lua_idx, i); |
| 2094 | strings[i - 1] = luabb_tostring(L, -1); |
| 2095 | lua_pop(L, 1); |
| 2096 | } |
| 2097 | return sqlite3_carray_bind(stmt, sql_idx, strings, count, CARRAY_TEXT, SQLITE_TRANSIENT); |
| 2098 | } |
| 2099 | |
| 2100 | static int luabb_carray_bind_blob(Lua L, int lua_idx, sqlite3_stmt *stmt, int sql_idx) |
| 2101 | { |
no test coverage detected