From e48000a5d76ff4d762821708f99ca90962e25f46 Mon Sep 17 00:00:00 2001 From: Andi Albrecht Date: Fri, 19 Jul 2024 11:29:17 +0200 Subject: [PATCH] Add EXTENSION as keyword (fixes #785). --- CHANGELOG | 4 +++- sqlparse/keywords.py | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 7d605d16..dc6b8585 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,7 +1,9 @@ Development Version ------------------- -Nothing yet. +Bug Fixes + +* EXTENSION is now recognized as a keyword (issue785). Release 0.5.1 (Jul 15, 2024) diff --git a/sqlparse/keywords.py b/sqlparse/keywords.py index dfafedb7..6211e829 100644 --- a/sqlparse/keywords.py +++ b/sqlparse/keywords.py @@ -846,6 +846,7 @@ 'INHERIT': tokens.Keyword, 'INDEXES': tokens.Keyword, 'ON_ERROR_STOP': tokens.Keyword, + 'EXTENSION': tokens.Keyword, 'BYTEA': tokens.Keyword, 'BIGSERIAL': tokens.Keyword,