summaryrefslogtreecommitdiff
path: root/sqlparse
diff options
context:
space:
mode:
authorDarik Gamble <darik.gamble@gmail.com>2015-02-06 14:55:55 -0500
committerDarik Gamble <darik.gamble@gmail.com>2015-02-06 14:55:55 -0500
commit313f0f31e2e67229da32393767d4cf500518815a (patch)
treef04e81884c460a7e1ad8c4e32fe0b6b3a6d95ee6 /sqlparse
parent161d0aea74787b32ea4c683700365f155551d094 (diff)
downloadsqlparse-313f0f31e2e67229da32393767d4cf500518815a.tar.gz
Add double precision as a built-in datatype
Diffstat (limited to 'sqlparse')
-rw-r--r--sqlparse/lexer.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sqlparse/lexer.py b/sqlparse/lexer.py
index 631c267..611835f 100644
--- a/sqlparse/lexer.py
+++ b/sqlparse/lexer.py
@@ -200,6 +200,7 @@ class Lexer(object):
(r'END(\s+IF|\s+LOOP)?\b', tokens.Keyword),
(r'NOT NULL\b', tokens.Keyword),
(r'CREATE(\s+OR\s+REPLACE)?\b', tokens.Keyword.DDL),
+ (r'DOUBLE\s+PRECISION\b', tokens.Name.Builtin),
(r'(?<=\.)[^\W\d_]\w*', tokens.Name),
(r'[^\W\d_]\w*', is_keyword),
(r'[;:()\[\],\.]', tokens.Punctuation),