Changeset: 0c634ffa3285 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=0c634ffa3285 Added Files: sql/test/BugTracker-2017/Tests/check_system_schema.Bug-6437.sql sql/test/BugTracker-2017/Tests/check_system_schema.Bug-6437.stable.err sql/test/BugTracker-2017/Tests/check_system_schema.Bug-6437.stable.out Modified Files: sql/test/BugTracker-2017/Tests/All Branch: Jul2017 Log Message:
Moved test drop_system_schema.Bug-6437 to be the first test. Strangly the test output is differently when it is run as first test or standalone. The fix for bug 6437 is not yet 100% robust/complete. Also added a test to check that the system schemas: sys, tmp, json and profiler exist after test drop_system_schema.Bug-6437 has run (and the server is restarted). diffs (149 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 @@ -1,3 +1,6 @@ +# keep drop_system_schema.Bug-6437 as first test as it appears that the behavior is different (wrong) when it is the first test or not +drop_system_schema.Bug-6437 +check_system_schema.Bug-6437 unknown_col_in_order_by.Bug-3535 insert_self_ref_FK.Bug-6131 shutdown.Bug-6182 @@ -84,7 +87,6 @@ sqlitelogictest-aggregation-distinct-coa sqlsmith.Bug-6432 sqlitelogictest-select-in.Bug-6433 sqlitelogictest-select-not-in.Bug-6435 -drop_system_schema.Bug-6437 sqlitelogictest-cast-decimal.Bug-6445 HAVE_LIBPY?table_returning_with.Bug-6444 insert_into_multiple_subqueries.Bug-6448 diff --git a/sql/test/BugTracker-2017/Tests/check_system_schema.Bug-6437.sql b/sql/test/BugTracker-2017/Tests/check_system_schema.Bug-6437.sql new file mode 100644 --- /dev/null +++ b/sql/test/BugTracker-2017/Tests/check_system_schema.Bug-6437.sql @@ -0,0 +1,14 @@ +select name, authorization, owner, "system" from sys.schemas where name IN ('sys', 'tmp', 'json', 'profiler') order by name; + +set schema profiler; +select current_schema; + +set schema json; +select current_schema; + +set schema tmp; +select current_schema; + +set schema sys; +select current_schema; + diff --git a/sql/test/BugTracker-2017/Tests/check_system_schema.Bug-6437.stable.err b/sql/test/BugTracker-2017/Tests/check_system_schema.Bug-6437.stable.err new file mode 100644 --- /dev/null +++ b/sql/test/BugTracker-2017/Tests/check_system_schema.Bug-6437.stable.err @@ -0,0 +1,34 @@ +stderr of test 'check_system_schema.Bug-6437` in directory 'sql/test/BugTracker-2017` itself: + + +# 14:30:39 > +# 14:30:39 > "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" "mapi_open=true" "--set" "mapi_port=34250" "--set" "mapi_usock=/var/tmp/mtest-23107/.s.monetdb.34250" "--set" "monet_prompt=" "--forcemito" "--dbpath=/export/scratch1/dinther/INSTALL/var/MonetDB/mTests_sql_test_BugTracker-2017" +# 14:30:39 > + +# builtin opt gdk_dbpath = /export/scratch1/dinther/INSTALL/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 = 34250 +# cmdline opt mapi_usock = /var/tmp/mtest-23107/.s.monetdb.34250 +# cmdline opt monet_prompt = +# cmdline opt gdk_dbpath = /export/scratch1/dinther/INSTALL/var/MonetDB/mTests_sql_test_BugTracker-2017 +# cmdline opt gdk_debug = 536870922 + +# 14:30:39 > +# 14:30:39 > "mclient" "-lsql" "-ftest" "-Eutf-8" "-i" "-e" "--host=/var/tmp/mtest-23107" "--port=34250" +# 14:30:39 > + + +# 14:30:39 > +# 14:30:39 > "Done." +# 14:30:39 > + diff --git a/sql/test/BugTracker-2017/Tests/check_system_schema.Bug-6437.stable.out b/sql/test/BugTracker-2017/Tests/check_system_schema.Bug-6437.stable.out new file mode 100644 --- /dev/null +++ b/sql/test/BugTracker-2017/Tests/check_system_schema.Bug-6437.stable.out @@ -0,0 +1,68 @@ +stdout of test 'check_system_schema.Bug-6437` in directory 'sql/test/BugTracker-2017` itself: + + +# 14:30:39 > +# 14:30:39 > "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" "mapi_open=true" "--set" "mapi_port=34250" "--set" "mapi_usock=/var/tmp/mtest-23107/.s.monetdb.34250" "--set" "monet_prompt=" "--forcemito" "--dbpath=/export/scratch1/dinther/INSTALL/var/MonetDB/mTests_sql_test_BugTracker-2017" +# 14:30:39 > + +# MonetDB 5 server v11.27.10 +# 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 31.312 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://catskill.da.cwi.nl:34250/ +# Listening for UNIX domain connection requests on mapi:monetdb:///var/tmp/mtest-23107/.s.monetdb.34250 +# MonetDB/GIS module loaded +# MonetDB/SQL module loaded + +Ready. + +# 14:30:39 > +# 14:30:39 > "mclient" "-lsql" "-ftest" "-Eutf-8" "-i" "-e" "--host=/var/tmp/mtest-23107" "--port=34250" +# 14:30:39 > + +#select name, authorization, owner, "system" from sys.schemas where name IN ('sys', 'tmp', 'json', 'profiler') order by name; +% sys.schemas, sys.schemas, sys.schemas, sys.schemas # table_name +% name, authorization, owner, system # name +% varchar, int, int, boolean # type +% 8, 1, 1, 5 # length +[ "json", 3, 3, true ] +[ "profiler", 3, 3, true ] +[ "sys", 2, 3, true ] +[ "tmp", 2, 3, true ] +#set schema profiler; +#select current_schema; +% .L2 # table_name +% L2 # name +% varchar # type +% 8 # length +[ "profiler" ] +#set schema json; +#select current_schema; +% .L2 # table_name +% L2 # name +% varchar # type +% 4 # length +[ "json" ] +#set schema tmp; +#select current_schema; +% .L2 # table_name +% L2 # name +% varchar # type +% 3 # length +[ "tmp" ] +#set schema sys; +#select current_schema; +% .L2 # table_name +% L2 # name +% varchar # type +% 3 # length +[ "sys" ] + +# 14:30:39 > +# 14:30:39 > "Done." +# 14:30:39 > + _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list