Changeset: b3a1a04bea24 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=b3a1a04bea24
Added Files:
        sql/test/BugTracker-2015/Tests/assertHead.Bug-3706.sql
        sql/test/BugTracker-2015/Tests/assertHead.Bug-3706.stable.err
        sql/test/BugTracker-2015/Tests/assertHead.Bug-3706.stable.out
Modified Files:
        sql/test/BugTracker-2015/Tests/All
Branch: Oct2014
Log Message:

added test for bug 3706


diffs (117 lines):

diff --git a/sql/test/BugTracker-2015/Tests/All 
b/sql/test/BugTracker-2015/Tests/All
--- a/sql/test/BugTracker-2015/Tests/All
+++ b/sql/test/BugTracker-2015/Tests/All
@@ -22,3 +22,4 @@ project_rewrite.Bug-3693
 project_rewrite.Bug-3693_2
 alias.Bug-3704
 case_aggr.Bug-3705
+assertHead.Bug-3706
diff --git a/sql/test/BugTracker-2015/Tests/assertHead.Bug-3706.sql 
b/sql/test/BugTracker-2015/Tests/assertHead.Bug-3706.sql
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2015/Tests/assertHead.Bug-3706.sql
@@ -0,0 +1,7 @@
+CREATE TABLE t1(a INTEGER, b INTEGER, c INTEGER, d INTEGER, e INTEGER);
+INSERT INTO t1(e,c,b,d,a) VALUES(103,102,100,101,104);
+INSERT INTO t1(a,c,d,e,b) VALUES(107,106,108,109,105);
+INSERT INTO t1(e,d,b,a,c) VALUES(110,114,112,111,113);
+INSERT INTO t1(d,c,e,a,b) VALUES(116,119,117,115,118);
+SELECT (SELECT count(*) FROM t1 AS x WHERE x.b<t1.b) FROM t1 WHERE (a>b-2 AND 
a<b+2) OR c>d ORDER BY 1;
+drop table t1;
diff --git a/sql/test/BugTracker-2015/Tests/assertHead.Bug-3706.stable.err 
b/sql/test/BugTracker-2015/Tests/assertHead.Bug-3706.stable.err
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2015/Tests/assertHead.Bug-3706.stable.err
@@ -0,0 +1,37 @@
+stderr of test 'assertHead.Bug-3706` in directory 'sql/test/BugTracker-2015` 
itself:
+
+
+# 22:07:36 >  
+# 22:07:36 >  "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" 
"mapi_open=true" "--set" "mapi_port=32645" "--set" 
"mapi_usock=/var/tmp/mtest-15113/.s.monetdb.32645" "--set" "monet_prompt=" 
"--forcemito" "--set" "mal_listing=2" 
"--dbpath=/home/niels/scratch/rc-clean/Linux-x86_64/var/MonetDB/mTests_sql_test_BugTracker-2015"
 "--set" "mal_listing=0" "--set" "embedded_r=yes"
+# 22:07:36 >  
+
+# builtin opt  gdk_dbpath = 
/home/niels/scratch/rc-clean/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 = 32645
+# cmdline opt  mapi_usock = /var/tmp/mtest-15113/.s.monetdb.32645
+# cmdline opt  monet_prompt = 
+# cmdline opt  mal_listing = 2
+# cmdline opt  gdk_dbpath = 
/home/niels/scratch/rc-clean/Linux-x86_64/var/MonetDB/mTests_sql_test_BugTracker-2015
+# cmdline opt  mal_listing = 0
+# cmdline opt  embedded_r = yes
+# cmdline opt  gdk_debug = 536870922
+
+# 22:07:36 >  
+# 22:07:36 >  "mclient" "-lsql" "-ftest" "-Eutf-8" "-i" "-e" 
"--host=/var/tmp/mtest-15113" "--port=32645"
+# 22:07:36 >  
+
+
+# 22:07:36 >  
+# 22:07:36 >  "Done."
+# 22:07:36 >  
+
diff --git a/sql/test/BugTracker-2015/Tests/assertHead.Bug-3706.stable.out 
b/sql/test/BugTracker-2015/Tests/assertHead.Bug-3706.stable.out
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2015/Tests/assertHead.Bug-3706.stable.out
@@ -0,0 +1,50 @@
+stdout of test 'assertHead.Bug-3706` in directory 'sql/test/BugTracker-2015` 
itself:
+
+
+# 22:07:36 >  
+# 22:07:36 >  "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" 
"mapi_open=true" "--set" "mapi_port=32645" "--set" 
"mapi_usock=/var/tmp/mtest-15113/.s.monetdb.32645" "--set" "monet_prompt=" 
"--forcemito" "--set" "mal_listing=2" 
"--dbpath=/home/niels/scratch/rc-clean/Linux-x86_64/var/MonetDB/mTests_sql_test_BugTracker-2015"
 "--set" "mal_listing=0" "--set" "embedded_r=yes"
+# 22:07:36 >  
+
+# MonetDB 5 server v11.19.10
+# This is an unreleased version
+# Serving database 'mTests_sql_test_BugTracker-2015', using 4 threads
+# Compiled for x86_64-unknown-linux-gnu/64bit with 64bit OIDs dynamically 
linked
+# Found 7.333 GiB available main-memory.
+# Copyright (c) 1993-July 2008 CWI.
+# Copyright (c) August 2008-2015 MonetDB B.V., all rights reserved
+# Visit http://www.monetdb.org/ for further information
+# Listening for connection requests on mapi:monetdb://localhost.nes.nl:32645/
+# Listening for UNIX domain connection requests on 
mapi:monetdb:///var/tmp/mtest-15113/.s.monetdb.32645
+# MonetDB/GIS module loaded
+# MonetDB/SQL module loaded
+# MonetDB/R   module loaded
+
+Ready.
+
+# 22:07:36 >  
+# 22:07:36 >  "mclient" "-lsql" "-ftest" "-Eutf-8" "-i" "-e" 
"--host=/var/tmp/mtest-15113" "--port=32645"
+# 22:07:36 >  
+
+#CREATE TABLE t1(a INTEGER, b INTEGER, c INTEGER, d INTEGER, e INTEGER);
+#INSERT INTO t1(e,c,b,d,a) VALUES(103,102,100,101,104);
+[ 1    ]
+#INSERT INTO t1(a,c,d,e,b) VALUES(107,106,108,109,105);
+[ 1    ]
+#INSERT INTO t1(e,d,b,a,c) VALUES(110,114,112,111,113);
+[ 1    ]
+#INSERT INTO t1(d,c,e,a,b) VALUES(116,119,117,115,118);
+[ 1    ]
+#SELECT (SELECT count(*) FROM t1 AS x WHERE x.b<t1.b) FROM t1 WHERE (a>b-2 AND 
a<b+2) OR c>d ORDER BY 1;
+% .L2 # table_name
+% L2 # name
+% wrd # type
+% 1 # length
+[ 0    ]
+[ 2    ]
+[ 3    ]
+#drop table t1;
+
+# 22:07:36 >  
+# 22:07:36 >  "Done."
+# 22:07:36 >  
+
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to