Closed Pismice closed 3 months ago
Looks like any attempt to chain multiple requests fail:
const query =
\\ INSERT INTO buildings(level,space_taken) VALUES(1,0);
\\ INSERT INTO gold_mines(building_id,productivity) VALUES(last_insert_rowid(),?)
;
With SQLiteRangeError
It worked using savepoints :)
zig-sqlite commit
latest
Zig version
0.13.0
Steps to reproduce
Expected behaviour
I would except to pass the parameter to the SELECT inside the INSERT but I simply get an "Err: error.SQLiteError". I have no idea why. Is it possible to do requests the way I did ?