diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-03-07 18:09:31 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-03-07 18:09:31 +0000 |
commit | ebec59cc5cb6c6856705bf82ced7fe8d9f75b0d0 (patch) | |
tree | eacad0719c5f2d113f221000ec126226f0d7fc9e /sqlglot/dialects/duckdb.py | |
parent | Releasing debian version 11.2.3-1. (diff) | |
download | sqlglot-ebec59cc5cb6c6856705bf82ced7fe8d9f75b0d0.tar.xz sqlglot-ebec59cc5cb6c6856705bf82ced7fe8d9f75b0d0.zip |
Merging upstream version 11.3.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'sqlglot/dialects/duckdb.py')
-rw-r--r-- | sqlglot/dialects/duckdb.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sqlglot/dialects/duckdb.py b/sqlglot/dialects/duckdb.py index 6144101..c2755cd 100644 --- a/sqlglot/dialects/duckdb.py +++ b/sqlglot/dialects/duckdb.py @@ -83,6 +83,7 @@ class DuckDB(Dialect): ":=": TokenType.EQ, "ATTACH": TokenType.COMMAND, "CHARACTER VARYING": TokenType.VARCHAR, + "EXCLUDE": TokenType.EXCEPT, } class Parser(parser.Parser): @@ -173,3 +174,8 @@ class DuckDB(Dialect): exp.DataType.Type.VARCHAR: "TEXT", exp.DataType.Type.NVARCHAR: "TEXT", } + + STAR_MAPPING = { + **generator.Generator.STAR_MAPPING, + "except": "EXCLUDE", + } |