summaryrefslogtreecommitdiff
path: root/sqlparse/keywords.py
diff options
context:
space:
mode:
authorAndi Albrecht <albrecht.andi@gmail.com>2011-02-28 21:23:41 +0100
committerAndi Albrecht <albrecht.andi@gmail.com>2011-02-28 21:23:41 +0100
commit2bd7658034545aa7db5752cd35d400526af5439e (patch)
tree53c21e0814fdace5e7352e05575c6d7decc1c1cc /sqlparse/keywords.py
parent94e33797f7324540e9d64a623fc7c1aa18507318 (diff)
downloadsqlparse-2bd7658034545aa7db5752cd35d400526af5439e.tar.gz
Handle REPLACE as DML token and recognize hex numbers (thanks Ervin).
Diffstat (limited to 'sqlparse/keywords.py')
-rw-r--r--sqlparse/keywords.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlparse/keywords.py b/sqlparse/keywords.py
index 917601d..f518974 100644
--- a/sqlparse/keywords.py
+++ b/sqlparse/keywords.py
@@ -343,7 +343,6 @@ KEYWORDS = {
'RELATIVE': tokens.Keyword,
'RENAME': tokens.Keyword,
'REPEATABLE': tokens.Keyword,
- 'REPLACE': tokens.Keyword,
'RESET': tokens.Keyword,
'RESTART': tokens.Keyword,
'RESTRICT': tokens.Keyword,
@@ -528,6 +527,7 @@ KEYWORDS_COMMON = {
'INSERT': tokens.Keyword.DML,
'DELETE': tokens.Keyword.DML,
'UPDATE': tokens.Keyword.DML,
+ 'REPLACE': tokens.Keyword.DML,
'DROP': tokens.Keyword.DDL,
'CREATE': tokens.Keyword.DDL,
'ALTER': tokens.Keyword.DDL,