Changeset: b691e9f8af19 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=b691e9f8af19 Modified Files: sql/test/BugTracker-2011/Tests/All sql/test/BugTracker-2011/Tests/update_with_count.Bug-2928.sql sql/test/BugTracker-2011/Tests/update_with_count.Bug-2928.stable.err sql/test/BugTracker-2011/Tests/update_with_count.Bug-2928.stable.out Branch: Aug2011 Log Message:
added test for bug 2928 diffs (128 lines): diff --git a/sql/test/BugTracker-2011/Tests/All b/sql/test/BugTracker-2011/Tests/All --- a/sql/test/BugTracker-2011/Tests/All +++ b/sql/test/BugTracker-2011/Tests/All @@ -58,3 +58,4 @@ case-overflow.Bug-2239 sqltables.Bug-2921 Multiplication_and_cast.Bug-2923 like_or.Bug-2924 +update_with_count.Bug-2928 diff --git a/sql/test/BugTracker-2011/Tests/update_with_count.Bug-2928.sql b/sql/test/BugTracker-2011/Tests/update_with_count.Bug-2928.sql new file mode 100644 --- /dev/null +++ b/sql/test/BugTracker-2011/Tests/update_with_count.Bug-2928.sql @@ -0,0 +1,20 @@ +create table ranges( + x_min decimal(8,5), + y_min decimal(7,5), + width integer, + nb integer +); + +create table trips ( + tripid bigint not null, + x decimal(8,5) not null, + y decimal(8,5) not null, + time bigint not null +); + +UPDATE ranges SET nb = (SELECT count(*) FROM trips T + WHERE T.x between x_min and x_min + width + AND T.y between y_min and y_min + width); + +drop table trips; +drop table ranges; diff --git a/sql/test/BugTracker-2011/Tests/update_with_count.Bug-2928.stable.err b/sql/test/BugTracker-2011/Tests/update_with_count.Bug-2928.stable.err new file mode 100644 --- /dev/null +++ b/sql/test/BugTracker-2011/Tests/update_with_count.Bug-2928.stable.err @@ -0,0 +1,37 @@ +stderr of test 'update_with_count.Bug-2928` in directory 'test/BugTracker-2011` itself: + + +# 09:34:23 > +# 09:34:23 > "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" "gdk_dbfarm=/home/niels/scratch/rc-clean/Linux-x86_64/var/MonetDB" "--set" "mapi_open=true" "--set" "mapi_port=36795" "--set" "monet_prompt=" "--trace" "--forcemito" "--set" "mal_listing=2" "--dbname=mTests_test_BugTracker-2011" "--set" "mal_listing=0" +# 09:34:23 > + +# builtin opt gdk_dbname = demo +# builtin opt gdk_dbfarm = /home/niels/scratch/rc-clean/Linux-x86_64/var/monetdb5/dbfarm +# builtin opt gdk_debug = 0 +# builtin opt gdk_alloc_map = no +# 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 = /home/niels/scratch/rc-clean/Linux-x86_64/var/MonetDB +# cmdline opt mapi_open = true +# cmdline opt mapi_port = 36795 +# cmdline opt monet_prompt = +# cmdline opt mal_listing = 2 +# cmdline opt gdk_dbname = mTests_test_BugTracker-2011 +# cmdline opt mal_listing = 0 + +# 09:34:23 > +# 09:34:23 > "mclient" "-lsql" "-ftest" "-Eutf-8" "-i" "-e" "--host=niels" "--port=36795" +# 09:34:23 > + + +# 09:34:24 > +# 09:34:24 > "Done." +# 09:34:24 > + diff --git a/sql/test/BugTracker-2011/Tests/update_with_count.Bug-2928.stable.out b/sql/test/BugTracker-2011/Tests/update_with_count.Bug-2928.stable.out new file mode 100644 --- /dev/null +++ b/sql/test/BugTracker-2011/Tests/update_with_count.Bug-2928.stable.out @@ -0,0 +1,48 @@ +stdout of test 'update_with_count.Bug-2928` in directory 'test/BugTracker-2011` itself: + + +# 09:34:23 > +# 09:34:23 > "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" "gdk_dbfarm=/home/niels/scratch/rc-clean/Linux-x86_64/var/MonetDB" "--set" "mapi_open=true" "--set" "mapi_port=36795" "--set" "monet_prompt=" "--trace" "--forcemito" "--set" "mal_listing=2" "--dbname=mTests_test_BugTracker-2011" "--set" "mal_listing=0" +# 09:34:23 > + +# MonetDB 5 server v11.5.4 +# This is an unreleased version +# Serving database 'mTests_test_BugTracker-2011', using 4 threads +# Compiled for x86_64-unknown-linux-gnu/64bit with 64bit OIDs dynamically linked +# Found 3.779 GiB available main-memory. +# Copyright (c) 1993-July 2008 CWI. +# Copyright (c) August 2008-2011 MonetDB B.V., all rights reserved +# Visit http://www.monetdb.org/ for further information +# Listening for connection requests on mapi:monetdb://niels.nesco.mine.nu:36795/ +# MonetDB/GIS module loaded +# MonetDB/SQL module loaded + +Ready. + +# 09:34:23 > +# 09:34:23 > "mclient" "-lsql" "-ftest" "-Eutf-8" "-i" "-e" "--host=niels" "--port=36795" +# 09:34:23 > + +#create table ranges( +# x_min decimal(8,5), +# y_min decimal(7,5), +# width integer, +# nb integer +#); +#create table trips ( +# tripid bigint not null, +# x decimal(8,5) not null, +# y decimal(8,5) not null, +# time bigint not null +#); +#UPDATE ranges SET nb = (SELECT count(*) FROM trips T +# WHERE T.x between x_min and x_min + width +# AND T.y between y_min and y_min + width); +[ 0 ] +#drop table trips; +#drop table ranges; + +# 09:34:24 > +# 09:34:24 > "Done." +# 09:34:24 > + _______________________________________________ Checkin-list mailing list Checkin-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/checkin-list