summaryrefslogtreecommitdiffstats
path: root/tests/test_build.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-12-22 07:22:56 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-12-22 07:22:56 +0000
commit85bf7f61d00f60343363b7c6dc98f2d0b5a8e621 (patch)
tree76c8712faaa2753e3997de25eb3a69c3ec450979 /tests/test_build.py
parentAdding upstream version 10.2.6. (diff)
downloadsqlglot-85bf7f61d00f60343363b7c6dc98f2d0b5a8e621.tar.xz
sqlglot-85bf7f61d00f60343363b7c6dc98f2d0b5a8e621.zip
Adding upstream version 10.2.9.upstream/10.2.9
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/test_build.py')
-rw-r--r--tests/test_build.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_build.py b/tests/test_build.py
index 721c868..b014a3a 100644
--- a/tests/test_build.py
+++ b/tests/test_build.py
@@ -473,6 +473,12 @@ class TestBuild(unittest.TestCase):
(lambda: exp.values([("1", 2)]), "VALUES ('1', 2)"),
(lambda: exp.values([("1", 2)], "alias"), "(VALUES ('1', 2)) AS alias"),
(lambda: exp.values([("1", 2), ("2", 3)]), "VALUES ('1', 2), ('2', 3)"),
+ (
+ lambda: exp.values(
+ [("1", 2, None), ("2", 3, None)], "alias", ["col1", "col2", "col3"]
+ ),
+ "(VALUES ('1', 2, NULL), ('2', 3, NULL)) AS alias(col1, col2, col3)",
+ ),
(lambda: exp.delete("y", where="x > 1"), "DELETE FROM y WHERE x > 1"),
(lambda: exp.delete("y", where=exp.and_("x > 1")), "DELETE FROM y WHERE x > 1"),
]: