From ed4a4896aea7dd77dd5d8a9861302811ac421e47 Mon Sep 17 00:00:00 2001 From: Thodoris Sotiropoulos Date: Thu, 11 Jun 2020 10:50:41 -0400 Subject: Add 'exists' to SQLite's reserved keywords Added "exists" to the list of reserved words for SQLite so that this word will be quoted when used as a label or column name. Pull request courtesy Thodoris Sotiropoulos. Fixes: #5395 Closes: #5396 Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5396 Pull-request-sha: 5608317a38db7b63115e3b467d182a3e5cc31580 Change-Id: Ia4769de2dec159dcf282eb4b30c11560da51a5c7 --- lib/sqlalchemy/dialects/sqlite/base.py | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/sqlalchemy/dialects/sqlite') diff --git a/lib/sqlalchemy/dialects/sqlite/base.py b/lib/sqlalchemy/dialects/sqlite/base.py index 15d125ce0..a203e786e 100644 --- a/lib/sqlalchemy/dialects/sqlite/base.py +++ b/lib/sqlalchemy/dialects/sqlite/base.py @@ -1334,6 +1334,7 @@ class SQLiteIdentifierPreparer(compiler.IdentifierPreparer): "escape", "except", "exclusive", + "exists", "explain", "false", "fail", -- cgit v1.2.1