Changeset: 9e7faa331d1a for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=9e7faa331d1a
Modified Files:
        
sql/test/BugTracker-2018/Tests/sqlitelogictest-complex-case-nullif-coalesce.Bug-6565.sql
        
sql/test/BugTracker-2018/Tests/sqlitelogictest-mal-calc-undefined.Bug-6566.sql
Branch: Mar2018
Log Message:

Adding a CAST (  AS INT) or CAST (  AS BIGINT) to the SELECT queries such that 
the output becomes a bigint (instead of hugeint).
This prevents the need to create an additional .int128 output file or limiting 
the testing of these tests to platforms which HAVE_HGE.


diffs (19 lines):

diff --git 
a/sql/test/BugTracker-2018/Tests/sqlitelogictest-complex-case-nullif-coalesce.Bug-6565.sql
 
b/sql/test/BugTracker-2018/Tests/sqlitelogictest-complex-case-nullif-coalesce.Bug-6565.sql
--- 
a/sql/test/BugTracker-2018/Tests/sqlitelogictest-complex-case-nullif-coalesce.Bug-6565.sql
+++ 
b/sql/test/BugTracker-2018/Tests/sqlitelogictest-complex-case-nullif-coalesce.Bug-6565.sql
@@ -1,3 +1,3 @@
 SELECT + NULLIF ( + 67, + + NULLIF ( + + 46, 66 - CASE WHEN 51 IN ( + 91 ) 
THEN + SUM ( CAST ( NULL AS INTEGER ) )
 + - 92 ELSE - ( - 47 ) END ) ) / - CAST ( NULL AS INTEGER ) + + NULLIF ( - 
COALESCE ( CAST ( - 35 AS INTEGER ), + 6,
-COUNT ( ALL 28 ) ), 75 + 14 );
+CAST ( COUNT ( ALL 28 ) AS INT) ), 75 + 14 );
diff --git 
a/sql/test/BugTracker-2018/Tests/sqlitelogictest-mal-calc-undefined.Bug-6566.sql
 
b/sql/test/BugTracker-2018/Tests/sqlitelogictest-mal-calc-undefined.Bug-6566.sql
--- 
a/sql/test/BugTracker-2018/Tests/sqlitelogictest-mal-calc-undefined.Bug-6566.sql
+++ 
b/sql/test/BugTracker-2018/Tests/sqlitelogictest-mal-calc-undefined.Bug-6566.sql
@@ -1,5 +1,5 @@
 CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER);
 INSERT INTO tab0 VALUES(97,1,99), (15,81,47), (87,21,10);
-SELECT - col0 - - - col0 * + CAST ( NULL AS INTEGER ) FROM tab0;
-SELECT ALL - col1 * - 16 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0;
+SELECT CAST ( - col0 - - - col0 * + CAST ( NULL AS INTEGER ) AS BIGINT ) FROM 
tab0;
+SELECT ALL - CAST ( col1 * - 16 * + CAST ( NULL AS INTEGER ) AS BIGINT ) FROM 
tab0 cor0;
 DROP TABLE tab0;
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to