diff options
author | Petri Lehtinen <petri@digip.org> | 2012-02-12 21:03:02 +0200 |
---|---|---|
committer | Petri Lehtinen <petri@digip.org> | 2012-02-12 21:03:02 +0200 |
commit | 587209f08995e122de76b61154a8c70067778412 (patch) | |
tree | dc328567af046f00d8beb14e544965cc15361572 /Lib/sqlite3/test/dump.py | |
parent | c227965cbd77f73b4ede12bb8dcd0dd8ec939388 (diff) | |
download | cpython-git-587209f08995e122de76b61154a8c70067778412.tar.gz |
Fix sqlite3.Connection.iterdump on tables/fields with reserved names or quotes
Closes #9750
Diffstat (limited to 'Lib/sqlite3/test/dump.py')
-rw-r--r-- | Lib/sqlite3/test/dump.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/sqlite3/test/dump.py b/Lib/sqlite3/test/dump.py index 83b6b05255..2e9b436f30 100644 --- a/Lib/sqlite3/test/dump.py +++ b/Lib/sqlite3/test/dump.py @@ -13,6 +13,14 @@ class DumpTests(unittest.TestCase): def CheckTableDump(self): expected_sqls = [ + """CREATE TABLE "index"("index" blob);""" + , + """INSERT INTO "index" VALUES(X'01');""" + , + """CREATE TABLE "quoted""table"("quoted""field" text);""" + , + """INSERT INTO "quoted""table" VALUES('quoted''value');""" + , "CREATE TABLE t1(id integer primary key, s1 text, " \ "t1_i1 integer not null, i2 integer, unique (s1), " \ "constraint t1_idx1 unique (i2));" |