Changeset: 1b22d2eee345 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=1b22d2eee345
Modified Files:
        
sql/test/BugTracker-2018/Tests/sqlitelogictest-having-not-null-not-in.Bug-6557.sql
        
sql/test/BugTracker-2018/Tests/sqlitelogictest-having-not-null-not-in.Bug-6557.stable.err
Branch: Apr2019
Log Message:

Updated bug 6557 with similar query that should give an error.

The error is thrown in Apr2019 branch, but it's crashing on default, maybe 
because of subquery branch changes.


diffs (23 lines):

diff --git 
a/sql/test/BugTracker-2018/Tests/sqlitelogictest-having-not-null-not-in.Bug-6557.sql
 
b/sql/test/BugTracker-2018/Tests/sqlitelogictest-having-not-null-not-in.Bug-6557.sql
--- 
a/sql/test/BugTracker-2018/Tests/sqlitelogictest-having-not-null-not-in.Bug-6557.sql
+++ 
b/sql/test/BugTracker-2018/Tests/sqlitelogictest-having-not-null-not-in.Bug-6557.sql
@@ -1,4 +1,5 @@
 CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER);
 INSERT INTO tab0 VALUES(83,0,38), (26,0,79), (43,81,24);
 SELECT DISTINCT col2 FROM tab0 GROUP BY col2, col1 HAVING NOT NULL NOT IN ( 
AVG ( ALL + col1 ) );
+SELECT DISTINCT tab0.col1 AS col2 FROM tab0 GROUP BY tab0.col1 HAVING NULL NOT 
IN ( col2 ); --error
 DROP TABLE tab0;
diff --git 
a/sql/test/BugTracker-2018/Tests/sqlitelogictest-having-not-null-not-in.Bug-6557.stable.err
 
b/sql/test/BugTracker-2018/Tests/sqlitelogictest-having-not-null-not-in.Bug-6557.stable.err
--- 
a/sql/test/BugTracker-2018/Tests/sqlitelogictest-having-not-null-not-in.Bug-6557.stable.err
+++ 
b/sql/test/BugTracker-2018/Tests/sqlitelogictest-having-not-null-not-in.Bug-6557.stable.err
@@ -27,6 +27,10 @@ stderr of test 'sqlitelogictest-having-n
 # 12:32:58 >  "mclient" "-lsql" "-ftest" "-tnone" "-Eutf-8" "-i" "-e" 
"--host=/var/tmp/mtest-25333" "--port=30615"
 # 12:32:58 >  
 
+MAPI  = (monetdb) /var/tmp/mtest-5168/.s.monetdb.37758
+QUERY = SELECT DISTINCT tab0.col1 AS col2 FROM tab0 GROUP BY tab0.col1 HAVING 
NULL NOT IN ( col2 ); --error
+ERROR = !SELECT: cannot use non GROUP BY column 'col2' in query results 
without an aggregate function
+CODE  = 42000
 
 # 12:32:58 >  
 # 12:32:58 >  "Done."
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to