mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-17 16:44:19 +01:00
Fix extensions py test
This commit is contained in:
@@ -1422,7 +1422,6 @@ pub fn op_vbegin(
|
|||||||
.expect("VBegin on non ext-virtual table cursor");
|
.expect("VBegin on non ext-virtual table cursor");
|
||||||
let mut states = program.connection.vtab_txn_states.write();
|
let mut states = program.connection.vtab_txn_states.write();
|
||||||
if states.insert(vtab_id) {
|
if states.insert(vtab_id) {
|
||||||
// A transaction is already active for this virtual table module
|
|
||||||
// Only begin a new transaction if one is not already active for this virtual table module
|
// Only begin a new transaction if one is not already active for this virtual table module
|
||||||
let vtabs = &program.connection.syms.read().vtabs;
|
let vtabs = &program.connection.syms.read().vtabs;
|
||||||
let vtab = vtabs
|
let vtab = vtabs
|
||||||
|
|||||||
@@ -493,7 +493,7 @@ def _test_kv(exec_name, ext_path):
|
|||||||
turso.run_test_fn("alter table t rename to renamed;", lambda res: "" == res, "can rename virtual table")
|
turso.run_test_fn("alter table t rename to renamed;", lambda res: "" == res, "can rename virtual table")
|
||||||
turso.run_test_fn(
|
turso.run_test_fn(
|
||||||
"select sql from sqlite_schema where name = 'renamed';",
|
"select sql from sqlite_schema where name = 'renamed';",
|
||||||
lambda res: "CREATE VIRTUAL TABLE t2 USING kv_store ()",
|
lambda res: "CREATE VIRTUAL TABLE renamed USING kv_store ()",
|
||||||
"renamed table shows up in sqlite_schema",
|
"renamed table shows up in sqlite_schema",
|
||||||
)
|
)
|
||||||
turso.quit()
|
turso.quit()
|
||||||
|
|||||||
Reference in New Issue
Block a user