diff options
| author | Darik Gamble <darik.gamble@gmail.com> | 2015-02-06 14:55:55 -0500 |
|---|---|---|
| committer | Darik Gamble <darik.gamble@gmail.com> | 2015-02-06 14:55:55 -0500 |
| commit | 313f0f31e2e67229da32393767d4cf500518815a (patch) | |
| tree | f04e81884c460a7e1ad8c4e32fe0b6b3a6d95ee6 /sqlparse | |
| parent | 161d0aea74787b32ea4c683700365f155551d094 (diff) | |
| download | sqlparse-313f0f31e2e67229da32393767d4cf500518815a.tar.gz | |
Add double precision as a built-in datatype
Diffstat (limited to 'sqlparse')
| -rw-r--r-- | sqlparse/lexer.py | 1 |
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), |
