From f73e9af131151f1e058446361c35b05c4c90bf10 Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel.baumann@progress-linux.org>
Date: Thu, 7 Sep 2023 13:39:48 +0200
Subject: Merging upstream version 18.2.0.

Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
---
 tests/fixtures/optimizer/simplify.sql | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

(limited to 'tests/fixtures/optimizer/simplify.sql')

diff --git a/tests/fixtures/optimizer/simplify.sql b/tests/fixtures/optimizer/simplify.sql
index 3ed02cd..66fb19c 100644
--- a/tests/fixtures/optimizer/simplify.sql
+++ b/tests/fixtures/optimizer/simplify.sql
@@ -264,6 +264,9 @@ TRUE;
 (FALSE);
 FALSE;
 
+((TRUE));
+TRUE;
+
 (FALSE OR TRUE);
 TRUE;
 
@@ -288,6 +291,9 @@ x = y AND z;
 x * (1 - y);
 x * (1 - y);
 
+(((x % 20) = 0) = TRUE);
+((x % 20) = 0) = TRUE;
+
 --------------------------------------
 -- Literals
 --------------------------------------
@@ -612,6 +618,9 @@ TRUE;
 x = 2018 OR x <> 2018;
 x <> 2018 OR x = 2018;
 
+t0.x = t1.x AND t0.y < t1.y AND t0.y <= t1.y;
+t0.x = t1.x AND t0.y < t1.y AND t0.y <= t1.y;
+
 --------------------------------------
 -- Coalesce
 --------------------------------------
@@ -645,6 +654,12 @@ x = 1 OR x IS NULL;
 COALESCE(x, 1) IS NULL;
 FALSE;
 
+COALESCE(ROW() OVER (), 1) = 1;
+ROW() OVER () = 1 OR ROW() OVER () IS NULL;
+
+a AND b AND COALESCE(ROW() OVER (), 1) = 1;
+a AND b AND (ROW() OVER () = 1 OR ROW() OVER () IS NULL);
+
 --------------------------------------
 -- CONCAT
 --------------------------------------
-- 
cgit v1.2.3

