self.cx.backup(bck, name='non-existing')
self.assertIn(
str(cm.exception),
- ['SQL logic error', 'SQL logic error or missing database']
+ ['SQL logic error', 'SQL logic error or missing database',
+ 'unknown database non-existing']
)
self.cx.execute("ATTACH DATABASE ':memory:' AS attached_db")
con = sqlite.connect(":memory:",detect_types=sqlite.PARSE_DECLTYPES)
con.execute("create table foo(bar timestamp)")
con.execute("insert into foo(bar) values (?)", (datetime.datetime.now(),))
- con.execute(SELECT)
+ con.execute(SELECT).close()
con.execute("drop table foo")
con.execute("create table foo(bar integer)")
con.execute("insert into foo(bar) values (5)")
- con.execute(SELECT)
+ con.execute(SELECT).close()
def CheckBindMutatingList(self):
# Issue41662: Crash when mutate a list of parameters during iteration.