Displaying 1 result from an estimated 1 matches for "transaction_begin_callback".
2014 Sep 03
0
Assertion failed in sql_transaction_commit with pgsql driver
Hi!
Next code from driver_pgsql_transaction_commit cause assertion failed in do_query function - i_assert(SQL_DB_IS_READY(&db->api))
} else {
/* multiple queries, use a transaction */
ctx->refcount++;
sql_query(_ctx->db, "BEGIN", transaction_begin_callback, ctx); <- first sql_query changes db state to SQL_DB_STATE_BUSY
while (_ctx->head != NULL) {
ctx->refcount++;
sql_query(_ctx->db, _ctx->head->query, <- second query cause assertion failed due...