summaryrefslogtreecommitdiffstats
path: root/tests/fixtures/optimizer/simplify.sql
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-03 07:37:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-03 07:37:50 +0000
commit8b1fb8d8676e832d02b99bb8e69f6897dd10c0f6 (patch)
treed31426ac93b330e755f0b500704e236b9a62dc15 /tests/fixtures/optimizer/simplify.sql
parentReleasing debian version 25.16.1-1. (diff)
downloadsqlglot-8b1fb8d8676e832d02b99bb8e69f6897dd10c0f6.tar.xz
sqlglot-8b1fb8d8676e832d02b99bb8e69f6897dd10c0f6.zip
Merging upstream version 25.18.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/fixtures/optimizer/simplify.sql')
-rw-r--r--tests/fixtures/optimizer/simplify.sql21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/fixtures/optimizer/simplify.sql b/tests/fixtures/optimizer/simplify.sql
index 6035ee6..ab8f963 100644
--- a/tests/fixtures/optimizer/simplify.sql
+++ b/tests/fixtures/optimizer/simplify.sql
@@ -85,6 +85,27 @@ NULL;
NULL = NULL;
NULL;
+1 AND 0;
+FALSE;
+
+0 AND 1;
+FALSE;
+
+0 OR 1;
+TRUE;
+
+0 OR NULL;
+NULL;
+
+NULL OR 0;
+NULL;
+
+0 AND NULL;
+FALSE;
+
+NULL AND 0;
+FALSE;
+
-- Can't optimize this because different engines do different things
-- mysql converts to 0 and 1 but tsql does true and false
NULL <=> NULL;