Kaydet (Commit) f40f6846 authored tarafından Gerhard Häring's avatar Gerhard Häring

Made sqlite3 module's regression tests work with SQLite versions that don't

support "create table if not exists", yet.
üst e3fabd10
......@@ -115,8 +115,9 @@ class RegressionTests(unittest.TestCase):
pysqlite would crash with older SQLite versions unless
a workaround is implemented.
"""
self.con.execute("create table if not exists foo(bar)")
self.con.execute("create table if not exists foo(bar)")
self.con.execute("create table foo(bar)")
self.con.execute("drop table foo")
self.con.execute("create table foo(bar)")
def CheckEmptyStatement(self):
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment