Changeset: 751f31299c66 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=751f31299c66 Added Files: sql/test/BugTracker-2017/Tests/sqlsmith.Bug-6449.sql sql/test/BugTracker-2017/Tests/sqlsmith.Bug-6449.stable.err sql/test/BugTracker-2017/Tests/sqlsmith.Bug-6449.stable.out Modified Files: sql/test/BugTracker-2017/Tests/All Branch: Jul2017 Log Message:
add test for bug 6449 diffs (141 lines): diff --git a/sql/test/BugTracker-2017/Tests/All b/sql/test/BugTracker-2017/Tests/All --- a/sql/test/BugTracker-2017/Tests/All +++ b/sql/test/BugTracker-2017/Tests/All @@ -87,3 +87,4 @@ sqlitelogictest-select-not-in.Bug-6435 sqlitelogictest-cast-decimal.Bug-6445 HAVE_LIBPY?table_returning_with.Bug-6444 insert_into_multiple_subqueries.Bug-6448 +sqlsmith.Bug-6449 diff --git a/sql/test/BugTracker-2017/Tests/sqlsmith.Bug-6449.sql b/sql/test/BugTracker-2017/Tests/sqlsmith.Bug-6449.sql new file mode 100644 --- /dev/null +++ b/sql/test/BugTracker-2017/Tests/sqlsmith.Bug-6449.sql @@ -0,0 +1,27 @@ +select + ref_3.name as c0, + ref_4.index_type_name as c1, + ref_3.name as c2, + ref_3.value as c3 +from + sys.environment as ref_3 + inner join sys.index_types as ref_4 + on (ref_3.value is NULL) +where EXISTS ( + select + ref_3.value as c0 + from + (select + ref_5.table_id as c0, + ref_5.table_id as c1, + ref_6.lb as c2, + ref_4.index_type_name as c3, + ref_4.index_type_id as c4 + from + tmp._columns as ref_5 + left join bam.rg as ref_6 + on (ref_5.id is not NULL) + where false + limit 97) as subq_0 + where true) +limit 136; diff --git a/sql/test/BugTracker-2017/Tests/sqlsmith.Bug-6449.stable.err b/sql/test/BugTracker-2017/Tests/sqlsmith.Bug-6449.stable.err new file mode 100644 --- /dev/null +++ b/sql/test/BugTracker-2017/Tests/sqlsmith.Bug-6449.stable.err @@ -0,0 +1,34 @@ +stderr of test 'sqlsmith.Bug-6449` in directory 'sql/test/BugTracker-2017` itself: + + +# 11:12:49 > +# 11:12:49 > "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" "mapi_open=true" "--set" "mapi_port=35290" "--set" "mapi_usock=/var/tmp/mtest-20335/.s.monetdb.35290" "--set" "monet_prompt=" "--forcemito" "--dbpath=/home/niels/scratch/rc-monetdb/Linux-x86_64/var/MonetDB/mTests_sql_test_BugTracker-2017" +# 11:12:49 > + +# builtin opt gdk_dbpath = /home/niels/scratch/rc-monetdb/Linux-x86_64/var/monetdb5/dbfarm/demo +# builtin opt gdk_debug = 0 +# builtin opt gdk_vmtrim = no +# builtin opt monet_prompt = > +# builtin opt monet_daemon = no +# builtin opt mapi_port = 50000 +# builtin opt mapi_open = false +# builtin opt mapi_autosense = false +# builtin opt sql_optimizer = default_pipe +# builtin opt sql_debug = 0 +# cmdline opt gdk_nr_threads = 0 +# cmdline opt mapi_open = true +# cmdline opt mapi_port = 35290 +# cmdline opt mapi_usock = /var/tmp/mtest-20335/.s.monetdb.35290 +# cmdline opt monet_prompt = +# cmdline opt gdk_dbpath = /home/niels/scratch/rc-monetdb/Linux-x86_64/var/MonetDB/mTests_sql_test_BugTracker-2017 +# cmdline opt gdk_debug = 536870922 + +# 11:12:49 > +# 11:12:49 > "mclient" "-lsql" "-ftest" "-Eutf-8" "-i" "-e" "--host=/var/tmp/mtest-20335" "--port=35290" +# 11:12:49 > + + +# 11:12:49 > +# 11:12:49 > "Done." +# 11:12:49 > + diff --git a/sql/test/BugTracker-2017/Tests/sqlsmith.Bug-6449.stable.out b/sql/test/BugTracker-2017/Tests/sqlsmith.Bug-6449.stable.out new file mode 100644 --- /dev/null +++ b/sql/test/BugTracker-2017/Tests/sqlsmith.Bug-6449.stable.out @@ -0,0 +1,57 @@ +stdout of test 'sqlsmith.Bug-6449` in directory 'sql/test/BugTracker-2017` itself: + + +# 11:12:49 > +# 11:12:49 > "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" "mapi_open=true" "--set" "mapi_port=35290" "--set" "mapi_usock=/var/tmp/mtest-20335/.s.monetdb.35290" "--set" "monet_prompt=" "--forcemito" "--dbpath=/home/niels/scratch/rc-monetdb/Linux-x86_64/var/MonetDB/mTests_sql_test_BugTracker-2017" +# 11:12:49 > + +# MonetDB 5 server v11.27.6 +# This is an unreleased version +# Serving database 'mTests_sql_test_BugTracker-2017', using 4 threads +# Compiled for x86_64-unknown-linux-gnu/64bit with 128bit integers +# Found 7.330 GiB available main-memory. +# Copyright (c) 1993-July 2008 CWI. +# Copyright (c) August 2008-2017 MonetDB B.V., all rights reserved +# Visit https://www.monetdb.org/ for further information +# Listening for connection requests on mapi:monetdb://localhost.nes.nl:35290/ +# Listening for UNIX domain connection requests on mapi:monetdb:///var/tmp/mtest-20335/.s.monetdb.35290 +# MonetDB/GIS module loaded +# MonetDB/SQL module loaded + +Ready. + +# 11:12:49 > +# 11:12:49 > "mclient" "-lsql" "-ftest" "-Eutf-8" "-i" "-e" "--host=/var/tmp/mtest-20335" "--port=35290" +# 11:12:49 > + +#select +# ref_3.name as c0, +# ref_4.index_type_name as c1, +# ref_3.name as c2, +# ref_3.value as c3 +#from +# sys.environment as ref_3 +# inner join sys.index_types as ref_4 +# on (ref_3.value is NULL) +#where EXISTS ( +# select +# ref_3.value as c0 +# from +# (select +# ref_5.table_id as c0, +# ref_5.table_id as c1, +# ref_6.lb as c2, +# ref_4.index_type_name as c3, +# ref_4.index_type_id as c4 +# from +# tmp._columns as ref_5 +# left join bam.rg as ref_6 +% .L44, sys.L46, .L50, .L52 # table_name +% c0, c1, c2, c3 # name +% clob, varchar, clob, clob # type +% 0, 0, 0, 0 # length + +# 11:12:49 > +# 11:12:49 > "Done." +# 11:12:49 > + _______________________________________________ checkin-list mailing list [email protected] https://www.monetdb.org/mailman/listinfo/checkin-list
