summaryrefslogtreecommitdiff
path: root/sqlparse
diff options
context:
space:
mode:
authorAndi Albrecht <albrecht.andi@gmail.com>2022-09-10 10:08:02 +0200
committerAndi Albrecht <albrecht.andi@gmail.com>2022-09-10 10:08:02 +0200
commitb72a8ff42f53cba0517b1dd9e8af051b4a060ecf (patch)
treed193827bbf5e85809b56cbbeefab07419164cf59 /sqlparse
parent07a2e81532daf62f1f4360e48ff322abeade7315 (diff)
downloadsqlparse-b72a8ff42f53cba0517b1dd9e8af051b4a060ecf.tar.gz
Allow any unicode character as identifier name (fixes #641).
Diffstat (limited to 'sqlparse')
-rw-r--r--sqlparse/keywords.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlparse/keywords.py b/sqlparse/keywords.py
index 3aa6c63..d73e114 100644
--- a/sqlparse/keywords.py
+++ b/sqlparse/keywords.py
@@ -99,7 +99,7 @@ SQL_REGEX = {
(r'(NOT\s+)?(REGEXP)\b', tokens.Operator.Comparison),
# Check for keywords, also returns tokens.Name if regex matches
# but the match isn't a keyword.
- (r'[0-9_A-ZÀ-Ü][_$#\w]*', is_keyword),
+ (r'[0-9_\w][_$#\w]*', is_keyword),
(r'[;:()\[\],\.]', tokens.Punctuation),
(r'[<>=~!]+', tokens.Operator.Comparison),
(r'[+/@#%^&|^-]+', tokens.Operator),