summaryrefslogtreecommitdiff
path: root/sqlparse/keywords.py
diff options
context:
space:
mode:
authorAndi Albrecht <albrecht.andi@gmail.com>2013-11-19 08:11:58 +0100
committerAndi Albrecht <albrecht.andi@gmail.com>2013-11-19 08:11:58 +0100
commitf871291d33df018bf38cd62df3781456c8914210 (patch)
tree719f1dda71f687ff0f95949dc5a09f457c6cf2e1 /sqlparse/keywords.py
parent13ffdb69dd6129b81d0a6457d484798fd62e54c3 (diff)
downloadsqlparse-f871291d33df018bf38cd62df3781456c8914210.tar.gz
Support for BEGIN/END blocks, add FOREACH keyword.
Diffstat (limited to 'sqlparse/keywords.py')
-rw-r--r--sqlparse/keywords.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sqlparse/keywords.py b/sqlparse/keywords.py
index f1d76d0..1675d81 100644
--- a/sqlparse/keywords.py
+++ b/sqlparse/keywords.py
@@ -29,7 +29,7 @@ KEYWORDS = {
'BACKWARD': tokens.Keyword,
'BEFORE': tokens.Keyword,
- 'BEGIN': tokens.Keyword.DML,
+ 'BEGIN': tokens.Keyword,
'BETWEEN': tokens.Keyword,
'BITVAR': tokens.Keyword,
'BIT_LENGTH': tokens.Keyword,
@@ -163,6 +163,7 @@ KEYWORDS = {
'FINAL': tokens.Keyword,
'FIRST': tokens.Keyword,
'FORCE': tokens.Keyword,
+ 'FOREACH': tokens.Keyword,
'FOREIGN': tokens.Keyword,
'FORTRAN': tokens.Keyword,
'FORWARD': tokens.Keyword,