summaryrefslogtreecommitdiffstats
path: root/tests/test_transpile.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 05:35:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 05:35:55 +0000
commitfe979e8421c04c038353a0a2d07d81779516186a (patch)
treeefb70a52261e5cf4862a7eb69e1d7cd16356fcba /tests/test_transpile.py
parentReleasing debian version 23.13.7-1. (diff)
downloadsqlglot-fe979e8421c04c038353a0a2d07d81779516186a.tar.xz
sqlglot-fe979e8421c04c038353a0a2d07d81779516186a.zip
Merging upstream version 23.16.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/test_transpile.py')
-rw-r--r--tests/test_transpile.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_transpile.py b/tests/test_transpile.py
index 22085b3..dea9985 100644
--- a/tests/test_transpile.py
+++ b/tests/test_transpile.py
@@ -551,6 +551,13 @@ FROM x""",
pretty=True,
)
+ self.validate(
+ """SELECT X FROM catalog.db.table WHERE Y
+ --
+ AND Z""",
+ """SELECT X FROM catalog.db.table WHERE Y AND Z""",
+ )
+
def test_types(self):
self.validate("INT 1", "CAST(1 AS INT)")
self.validate("VARCHAR 'x' y", "CAST('x' AS VARCHAR) AS y")