Changeset: fcaf0d424a47 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=fcaf0d424a47 Added Files: sql/test/BugTracker-2012/Tests/algebra_find.Bug-2728.sql sql/test/BugTracker-2012/Tests/algebra_find.Bug-2728.stable.err sql/test/BugTracker-2012/Tests/algebra_find.Bug-2728.stable.out Modified Files: sql/test/BugTracker-2012/Tests/All Branch: Oct2012 Log Message:
Bug 2728 test. Runs successfully, bug not there anymore. diffs (179 lines): diff --git a/sql/test/BugTracker-2012/Tests/All b/sql/test/BugTracker-2012/Tests/All --- a/sql/test/BugTracker-2012/Tests/All +++ b/sql/test/BugTracker-2012/Tests/All @@ -67,3 +67,4 @@ currenttime.Bug-2781 timestamp_minus_date.Bug-2977 null_except_null.Bug-3040 create_index_update.Bug-3098.sql +algebra_find.Bug-2728 diff --git a/sql/test/BugTracker-2012/Tests/algebra_find.Bug-2728.sql b/sql/test/BugTracker-2012/Tests/algebra_find.Bug-2728.sql new file mode 100644 --- /dev/null +++ b/sql/test/BugTracker-2012/Tests/algebra_find.Bug-2728.sql @@ -0,0 +1,31 @@ +CREATE TABLE "sys"."kvk" ( + "kvk" BIGINT, + "bedrijfsnaam" VARCHAR(256), + "kvks" INTEGER, + "sub" INTEGER, + "adres" VARCHAR(256), + "postcode" VARCHAR(10), + "plaats" VARCHAR(32), + "type" VARCHAR(14), + "website" VARCHAR(128) +); +CREATE TABLE "sys"."vve" ( + "kd" INTEGER, + "naam1" VARCHAR(255), + "naam2" VARCHAR(255), + "naam3" VARCHAR(255), + "straatnaam" VARCHAR(255), + "huisnummer" INTEGER, + "toevoeging" VARCHAR(16), + "postcode" CHAR(6), + "plaats" VARCHAR(32), + "appartementen" INTEGER, + "zeter" VARCHAR(32) +); + +insert into vve values (1, 'test', 'test2', 'test3', 'Oude Trambaan', 7, null, '2265CA', 'Leidschendam', 1, 'ergens'); +insert into kvk values (0, 'test', 0, 0, 'Oude Trambaan 7', '2265CA', 'Leidschendam', 'iets', 'geen'); +insert into kvk values (1, 'test', 1, 0, 'Oude Trambaan 8', '2265CA', 'Leidschendam', 'iets', 'geen'); + +select count(*) from vve, kvk where toevoeging is null and vve.huisnummer is not null and vve.postcode = kvk.postcode and kvk.adres like ' %'||vve.huisnummer; + diff --git a/sql/test/BugTracker-2012/Tests/algebra_find.Bug-2728.stable.err b/sql/test/BugTracker-2012/Tests/algebra_find.Bug-2728.stable.err new file mode 100644 --- /dev/null +++ b/sql/test/BugTracker-2012/Tests/algebra_find.Bug-2728.stable.err @@ -0,0 +1,36 @@ +stderr of test 'algebra_find.Bug-2728` in directory 'test/BugTracker-2012` itself: + + +# 14:42:20 > +# 14:42:20 > "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" "gdk_dbfarm=/export/scratch2/kargin/Monet/bug_day_2012/PREFIX/DFT/var/MonetDB" "--set" "mapi_open=true" "--set" "mapi_port=36343" "--set" "monet_prompt=" "--trace" "--forcemito" "--set" "mal_listing=2" "--dbname=mTests_test_BugTracker-2012" "--set" "mal_listing=0" +# 14:42:20 > + +# builtin opt gdk_dbname = demo +# builtin opt gdk_dbfarm = /export/scratch2/kargin/Monet/bug_day_2012/PREFIX/DFT/var/monetdb5/dbfarm +# builtin opt gdk_debug = 0 +# builtin opt gdk_vmtrim = yes +# 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 gdk_dbfarm = /export/scratch2/kargin/Monet/bug_day_2012/PREFIX/DFT/var/MonetDB +# cmdline opt mapi_open = true +# cmdline opt mapi_port = 36343 +# cmdline opt monet_prompt = +# cmdline opt mal_listing = 2 +# cmdline opt gdk_dbname = mTests_test_BugTracker-2012 +# cmdline opt mal_listing = 0 + +# 14:42:20 > +# 14:42:20 > "mclient" "-lsql" "-ftest" "-Eutf-8" "-i" "-e" "--host=lodz" "--port=36343" +# 14:42:20 > + + +# 14:42:21 > +# 14:42:21 > "Done." +# 14:42:21 > + diff --git a/sql/test/BugTracker-2012/Tests/algebra_find.Bug-2728.stable.out b/sql/test/BugTracker-2012/Tests/algebra_find.Bug-2728.stable.out new file mode 100644 --- /dev/null +++ b/sql/test/BugTracker-2012/Tests/algebra_find.Bug-2728.stable.out @@ -0,0 +1,89 @@ +stdout of test 'algebra_find.Bug-2728` in directory 'test/BugTracker-2012` itself: + + +# 14:42:20 > +# 14:42:20 > "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" "gdk_dbfarm=/export/scratch2/kargin/Monet/bug_day_2012/PREFIX/DFT/var/MonetDB" "--set" "mapi_open=true" "--set" "mapi_port=36343" "--set" "monet_prompt=" "--trace" "--forcemito" "--set" "mal_listing=2" "--dbname=mTests_test_BugTracker-2012" "--set" "mal_listing=0" +# 14:42:20 > + +# MonetDB 5 server v11.13.6 +# This is an unreleased version +# Serving database 'mTests_test_BugTracker-2012', using 8 threads +# Compiled for x86_64-unknown-linux-gnu/64bit with 64bit OIDs dynamically linked +# Found 15.629 GiB available main-memory. +# Copyright (c) 1993-July 2008 CWI. +# Copyright (c) August 2008-2012 MonetDB B.V., all rights reserved +# Visit http://www.monetdb.org/ for further information +# Listening for connection requests on mapi:monetdb://lodz.ins.cwi.nl:36343/ +# MonetDB/GIS module loaded +# MonetDB/JAQL module loaded +# MonetDB/SQL module loaded + +Ready. +# SQL catalog created, loading sql scripts once +# loading sql script: 09_like.sql +# loading sql script: 10_math.sql +# loading sql script: 11_times.sql +# loading sql script: 12_url.sql +# loading sql script: 13_date.sql +# loading sql script: 14_inet.sql +# loading sql script: 15_history.sql +# loading sql script: 16_tracelog.sql +# loading sql script: 17_compress.sql +# loading sql script: 18_dictionary.sql +# loading sql script: 19_cluster.sql +# loading sql script: 20_vacuum.sql +# loading sql script: 21_dependency_functions.sql +# loading sql script: 22_clients.sql +# loading sql script: 23_skyserver.sql +# loading sql script: 24_zorder.sql +# loading sql script: 25_debug.sql +# loading sql script: 39_analytics.sql +# loading sql script: 40_geom.sql +# loading sql script: 80_udf.sql +# loading sql script: 99_system.sql + +# 14:42:20 > +# 14:42:20 > "mclient" "-lsql" "-ftest" "-Eutf-8" "-i" "-e" "--host=lodz" "--port=36343" +# 14:42:20 > + +#CREATE TABLE "sys"."kvk" ( +# "kvk" BIGINT, +# "bedrijfsnaam" VARCHAR(256), +# "kvks" INTEGER, +# "sub" INTEGER, +# "adres" VARCHAR(256), +# "postcode" VARCHAR(10), +# "plaats" VARCHAR(32), +# "type" VARCHAR(14), +# "website" VARCHAR(128) +#); +#CREATE TABLE "sys"."vve" ( +# "kd" INTEGER, +# "naam1" VARCHAR(255), +# "naam2" VARCHAR(255), +# "naam3" VARCHAR(255), +# "straatnaam" VARCHAR(255), +# "huisnummer" INTEGER, +# "toevoeging" VARCHAR(16), +# "postcode" CHAR(6), +# "plaats" VARCHAR(32), +# "appartementen" INTEGER, +# "zeter" VARCHAR(32) +#); +#insert into vve values (1, 'test', 'test2', 'test3', 'Oude Trambaan', 7, null, '2265CA', 'Leidschendam', 1, 'ergens'); +[ 1 ] +#insert into kvk values (0, 'test', 0, 0, 'Oude Trambaan 7', '2265CA', 'Leidschendam', 'iets', 'geen'); +[ 1 ] +#insert into kvk values (1, 'test', 1, 0, 'Oude Trambaan 8', '2265CA', 'Leidschendam', 'iets', 'geen'); +[ 1 ] +#select count(*) from vve, kvk where toevoeging is null and vve.huisnummer is not null and vve.postcode = kvk.postcode and kvk.adres like ' %'||vve.huisnummer; +% sys.vve # table_name +% L1 # name +% wrd # type +% 1 # length +[ 0 ] + +# 14:42:21 > +# 14:42:21 > "Done." +# 14:42:21 > + _______________________________________________ checkin-list mailing list checkin-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/checkin-list