diff options
| author | Andi Albrecht <albrecht.andi@gmail.com> | 2020-09-30 09:31:40 +0200 |
|---|---|---|
| committer | Andi Albrecht <albrecht.andi@gmail.com> | 2020-09-30 09:31:40 +0200 |
| commit | 990500a149920b02b2b6e5ffe6e747dea7c6739e (patch) | |
| tree | ac08759cd29dc2fa388766c0fbdbb92d9528da59 /sqlparse | |
| parent | cd4a723ee509437166b0f3e0fd62322ecc7bbd99 (diff) | |
| download | sqlparse-990500a149920b02b2b6e5ffe6e747dea7c6739e.tar.gz | |
Fix splitting when using DECLARE ... HANDLER (fixes #581).
Diffstat (limited to 'sqlparse')
| -rw-r--r-- | sqlparse/keywords.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlparse/keywords.py b/sqlparse/keywords.py index 933b323..bb69843 100644 --- a/sqlparse/keywords.py +++ b/sqlparse/keywords.py @@ -84,6 +84,7 @@ SQL_REGEX = { (r'DOUBLE\s+PRECISION\b', tokens.Name.Builtin), (r'GROUP\s+BY\b', tokens.Keyword), (r'ORDER\s+BY\b', tokens.Keyword), + (r'HANDLER\s+FOR\b', tokens.Keyword), (r'(LATERAL\s+VIEW\s+)' r'(EXPLODE|INLINE|PARSE_URL_TUPLE|POSEXPLODE|STACK)\b', tokens.Keyword), @@ -294,7 +295,6 @@ KEYWORDS = { 'GRANTED': tokens.Keyword, 'GROUPING': tokens.Keyword, - 'HANDLER': tokens.Keyword, 'HAVING': tokens.Keyword, 'HIERARCHY': tokens.Keyword, 'HOLD': tokens.Keyword, |
