]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fixes: #5395 Add 'exists' to SQLite's reserved keywords 5396/head
authorThodoris Sotiropoulos <theosotr@aueb.gr>
Thu, 11 Jun 2020 13:50:44 +0000 (16:50 +0300)
committerThodoris Sotiropoulos <theosotr@aueb.gr>
Thu, 11 Jun 2020 14:41:41 +0000 (17:41 +0300)
Fixes: https://github.com/sqlalchemy/sqlalchemy/issues/5395
lib/sqlalchemy/dialects/sqlite/base.py
test/dialect/test_sqlite.py

index 15d125ce0e4b1f707af0678aacdb9c1cebd25ce1..a203e786e202d724349ace54cb3c5f1c0605a99b 100644 (file)
@@ -1334,6 +1334,7 @@ class SQLiteIdentifierPreparer(compiler.IdentifierPreparer):
             "escape",
             "except",
             "exclusive",
+            "exists",
             "explain",
             "false",
             "fail",
index fabbfa4a417a5784f93b0379ef7ff409eeb3c87a..719834d4a66d6798b6d7cb42f3bed56ccb2b730f 100644 (file)
@@ -639,6 +639,7 @@ class DialectTest(
             Column("true", Integer),
             Column("false", Integer),
             Column("column", Integer),
+            Column("exists", Integer),
         )
         try:
             meta.create_all()