Changeset: 33497e39fe3f for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=33497e39fe3f
Added Files:
        sql/test/BugTracker-2013/Tests/select-around-zero.Bug-3220.sql
        sql/test/BugTracker-2013/Tests/select-around-zero.Bug-3220.stable.err
        sql/test/BugTracker-2013/Tests/select-around-zero.Bug-3220.stable.out
Modified Files:
        sql/test/BugTracker-2013/Tests/All
Branch: Feb2013
Log Message:

Added test for bug 3220.


diffs (218 lines):

diff --git a/sql/test/BugTracker-2013/Tests/All 
b/sql/test/BugTracker-2013/Tests/All
--- a/sql/test/BugTracker-2013/Tests/All
+++ b/sql/test/BugTracker-2013/Tests/All
@@ -1,1 +1,2 @@
 HAVE_PHP?php-size-limit-bug
+select-around-zero.Bug-3220
diff --git a/sql/test/BugTracker-2013/Tests/select-around-zero.Bug-3220.sql 
b/sql/test/BugTracker-2013/Tests/select-around-zero.Bug-3220.sql
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2013/Tests/select-around-zero.Bug-3220.sql
@@ -0,0 +1,21 @@
+start transaction;
+create table t3220 (y double, z float);
+insert into t3220 values (0,0);
+insert into t3220 values (0.1,0.1);
+insert into t3220 values (-0.1,-0.1);
+insert into t3220 values (-0.2,-0.2);
+insert into t3220 values (0.2,0.2);
+select * from t3220;
+select * from t3220 where y = 0;
+select * from t3220 where z = 0;
+select * from t3220 where y < 0;
+select * from t3220 where z < 0;
+select * from t3220 where y > 0;
+select * from t3220 where z > 0;
+select * from t3220 where y <> 0;
+select * from t3220 where z <> 0;
+select * from t3220 where y > 0.1;
+select * from t3220 where y < 0.1;
+select * from t3220 where y < -0.1;
+select * from t3220 where y > -0.1;
+rollback;
diff --git 
a/sql/test/BugTracker-2013/Tests/select-around-zero.Bug-3220.stable.err 
b/sql/test/BugTracker-2013/Tests/select-around-zero.Bug-3220.stable.err
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2013/Tests/select-around-zero.Bug-3220.stable.err
@@ -0,0 +1,35 @@
+stderr of test 'select-around-zero.Bug-3220` in directory 
'test/BugTracker-2013` itself:
+
+
+# 10:08:23 >  
+# 10:08:23 >  "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" 
"mapi_open=true" "--set" "mapi_port=37142" "--set" 
"mapi_usock=/var/tmp/mtest-13176/.s.monetdb.37142" "--set" "monet_prompt=" 
"--forcemito" "--set" "mal_listing=2" 
"--dbpath=/ufs/sjoerd/Monet-candidate/var/MonetDB/mTests_test_BugTracker-2013" 
"--set" "mal_listing=0"
+# 10:08:23 >  
+
+# builtin opt  gdk_dbpath = 
/ufs/sjoerd/Monet-candidate/var/monetdb5/dbfarm/demo
+# 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  mapi_open = true
+# cmdline opt  mapi_port = 37142
+# cmdline opt  mapi_usock = /var/tmp/mtest-13176/.s.monetdb.37142
+# cmdline opt  monet_prompt = 
+# cmdline opt  mal_listing = 2
+# cmdline opt  gdk_dbpath = 
/ufs/sjoerd/Monet-candidate/var/MonetDB/mTests_test_BugTracker-2013
+# cmdline opt  mal_listing = 0
+
+# 10:08:23 >  
+# 10:08:23 >  "mclient" "-lsql" "-ftest" "-Eutf-8" "-i" "-e" 
"--host=/var/tmp/mtest-13176" "--port=37142"
+# 10:08:23 >  
+
+
+# 10:08:24 >  
+# 10:08:24 >  "Done."
+# 10:08:24 >  
+
diff --git 
a/sql/test/BugTracker-2013/Tests/select-around-zero.Bug-3220.stable.out 
b/sql/test/BugTracker-2013/Tests/select-around-zero.Bug-3220.stable.out
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2013/Tests/select-around-zero.Bug-3220.stable.out
@@ -0,0 +1,141 @@
+stdout of test 'select-around-zero.Bug-3220` in directory 
'test/BugTracker-2013` itself:
+
+
+# 10:08:23 >  
+# 10:08:23 >  "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" 
"mapi_open=true" "--set" "mapi_port=37142" "--set" 
"mapi_usock=/var/tmp/mtest-13176/.s.monetdb.37142" "--set" "monet_prompt=" 
"--forcemito" "--set" "mal_listing=2" 
"--dbpath=/ufs/sjoerd/Monet-candidate/var/MonetDB/mTests_test_BugTracker-2013" 
"--set" "mal_listing=0"
+# 10:08:23 >  
+
+# MonetDB 5 server v11.15.0 (hg id: 2e5fc0a18c9c)
+# This is an unreleased version
+# Serving database 'mTests_test_BugTracker-2013', 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-2013 MonetDB B.V., all rights reserved
+# Visit http://www.monetdb.org/ for further information
+# Listening for connection requests on mapi:monetdb://madrid.ins.cwi.nl:37142/
+# Listening for UNIX domain connection requests on 
mapi:monetdb:///var/tmp/mtest-13176/.s.monetdb.37142
+# MonetDB/GIS module loaded
+# MonetDB/JAQL module loaded
+# MonetDB/SQL module loaded
+
+Ready.
+
+# 10:08:23 >  
+# 10:08:23 >  "mclient" "-lsql" "-ftest" "-Eutf-8" "-i" "-e" 
"--host=/var/tmp/mtest-13176" "--port=37142"
+# 10:08:23 >  
+
+#start transaction;
+#create table t3220 (y double, z float);
+#insert into t3220 values (0,0);
+[ 1    ]
+#insert into t3220 values (0.1,0.1);
+[ 1    ]
+#insert into t3220 values (-0.1,-0.1);
+[ 1    ]
+#insert into t3220 values (-0.2,-0.2);
+[ 1    ]
+#insert into t3220 values (0.2,0.2);
+[ 1    ]
+#select * from t3220;
+% sys.t3220,   sys.t3220 # table_name
+% y,   z # name
+% double,      double # type
+% 24,  24 # length
+[ 0,   0       ]
+[ 0.1, 0.1     ]
+[ -0.1,        -0.1    ]
+[ -0.2,        -0.2    ]
+[ 0.2, 0.2     ]
+#select * from t3220 where y = 0;
+% sys.t3220,   sys.t3220 # table_name
+% y,   z # name
+% double,      double # type
+% 24,  24 # length
+[ 0,   0       ]
+#select * from t3220 where z = 0;
+% sys.t3220,   sys.t3220 # table_name
+% y,   z # name
+% double,      double # type
+% 24,  24 # length
+[ 0,   0       ]
+#select * from t3220 where y < 0;
+% sys.t3220,   sys.t3220 # table_name
+% y,   z # name
+% double,      double # type
+% 24,  24 # length
+[ -0.1,        -0.1    ]
+[ -0.2,        -0.2    ]
+#select * from t3220 where z < 0;
+% sys.t3220,   sys.t3220 # table_name
+% y,   z # name
+% double,      double # type
+% 24,  24 # length
+[ -0.1,        -0.1    ]
+[ -0.2,        -0.2    ]
+#select * from t3220 where y > 0;
+% sys.t3220,   sys.t3220 # table_name
+% y,   z # name
+% double,      double # type
+% 24,  24 # length
+[ 0.1, 0.1     ]
+[ 0.2, 0.2     ]
+#select * from t3220 where z > 0;
+% sys.t3220,   sys.t3220 # table_name
+% y,   z # name
+% double,      double # type
+% 24,  24 # length
+[ 0.1, 0.1     ]
+[ 0.2, 0.2     ]
+#select * from t3220 where y <> 0;
+% sys.t3220,   sys.t3220 # table_name
+% y,   z # name
+% double,      double # type
+% 24,  24 # length
+[ 0.1, 0.1     ]
+[ -0.1,        -0.1    ]
+[ -0.2,        -0.2    ]
+[ 0.2, 0.2     ]
+#select * from t3220 where z <> 0;
+% sys.t3220,   sys.t3220 # table_name
+% y,   z # name
+% double,      double # type
+% 24,  24 # length
+[ 0.1, 0.1     ]
+[ -0.1,        -0.1    ]
+[ -0.2,        -0.2    ]
+[ 0.2, 0.2     ]
+#select * from t3220 where y > 0.1;
+% sys.t3220,   sys.t3220 # table_name
+% y,   z # name
+% double,      double # type
+% 24,  24 # length
+[ 0.2, 0.2     ]
+#select * from t3220 where y < 0.1;
+% sys.t3220,   sys.t3220 # table_name
+% y,   z # name
+% double,      double # type
+% 24,  24 # length
+[ 0,   0       ]
+[ -0.1,        -0.1    ]
+[ -0.2,        -0.2    ]
+#select * from t3220 where y < -0.1;
+% sys.t3220,   sys.t3220 # table_name
+% y,   z # name
+% double,      double # type
+% 24,  24 # length
+[ -0.2,        -0.2    ]
+#select * from t3220 where y > -0.1;
+% sys.t3220,   sys.t3220 # table_name
+% y,   z # name
+% double,      double # type
+% 24,  24 # length
+[ 0,   0       ]
+[ 0.1, 0.1     ]
+[ 0.2, 0.2     ]
+#rollback;
+
+# 10:08:24 >  
+# 10:08:24 >  "Done."
+# 10:08:24 >  
+
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to