I'm trying to write an INSERT RETURNING query which works on both Postgres and SQLite:
-- :name test_insert :insert
INSERT INTO table (foo) VALUES (:bar) RETURNING id;
This causes a sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) cannot commit transaction - SQL statements in progress error.
It's possible this is related to sqlalchemy/sqlalchemy#6195
I'm trying to write an INSERT RETURNING query which works on both Postgres and SQLite:
This causes a
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) cannot commit transaction - SQL statements in progresserror.It's possible this is related to sqlalchemy/sqlalchemy#6195