Adding upstream version 18.2.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
9de781a59b
commit
ab14e550ff
124 changed files with 60313 additions and 50346 deletions
15
tests/fixtures/optimizer/simplify.sql
vendored
15
tests/fixtures/optimizer/simplify.sql
vendored
|
@ -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
|
||||
--------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue