We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebebdb7 commit c84311eCopy full SHA for c84311e
Lib/sqlite3/test/test_regression.py
@@ -456,6 +456,20 @@ def test_table_lock_cursor_dealloc(self):
456
con.execute("drop table t")
457
con.commit()
458
459
+ def test_table_lock_cursor_non_readonly_select(self):
460
+ con = sqlite.connect(":memory:")
461
+ con.execute("create table t(t)")
462
+ con.executemany("insert into t values(?)", ((v,) for v in range(5)))
463
+ con.commit()
464
+ def dup(v):
465
+ con.execute("insert into t values(?)", (v,))
466
+ return
467
+ con.create_function("dup", 1, dup)
468
+ cur = con.execute("select dup(t) from t")
469
+ del cur
470
+ con.execute("drop table t")
471
472
+
473
474
if __name__ == "__main__":
475
unittest.main()
0 commit comments