Changeset: 091b184e5199 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=091b184e5199
Added Files:
        sql/test/BugTracker-2014/Tests/ifthenelse.Bug-3629.sql
        sql/test/BugTracker-2014/Tests/ifthenelse.Bug-3629.stable.err
        sql/test/BugTracker-2014/Tests/ifthenelse.Bug-3629.stable.out
Modified Files:
        sql/test/BugTracker-2014/Tests/All
Branch: Oct2014
Log Message:

added test for bug 3629


diffs (140 lines):

diff --git a/sql/test/BugTracker-2014/Tests/All 
b/sql/test/BugTracker-2014/Tests/All
--- a/sql/test/BugTracker-2014/Tests/All
+++ b/sql/test/BugTracker-2014/Tests/All
@@ -54,4 +54,6 @@ orderby_column_exp.Bug-3620
 case-sqrt.Bug-3627
 column-with-comma.Bug-3616
 stddev-empty.Bug-3628
+ifthenelse.Bug-3629
 order_by_incorrect_error.Bug-3630
+
diff --git a/sql/test/BugTracker-2014/Tests/ifthenelse.Bug-3629.sql 
b/sql/test/BugTracker-2014/Tests/ifthenelse.Bug-3629.sql
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2014/Tests/ifthenelse.Bug-3629.sql
@@ -0,0 +1,13 @@
+START TRANSACTION;
+CREATE FUNCTION test(b1 BOOLEAN)
+RETURNS INTEGER
+BEGIN
+  IF b1 THEN RETURN 1;
+  ELSEIF NOT(b1) THEN RETURN 0;
+  ELSE RETURN NULL;
+  END IF;
+END;
+SELECT test(true), test(false), test(null);
+select test(true);
+select test(false);
+select test(null);
diff --git a/sql/test/BugTracker-2014/Tests/ifthenelse.Bug-3629.stable.err 
b/sql/test/BugTracker-2014/Tests/ifthenelse.Bug-3629.stable.err
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2014/Tests/ifthenelse.Bug-3629.stable.err
@@ -0,0 +1,37 @@
+stderr of test 'ifthenelse.Bug-3629` in directory 'sql/test/BugTracker-2014` 
itself:
+
+
+# 18:33:32 >  
+# 18:33:32 >  "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" 
"mapi_open=true" "--set" "mapi_port=36196" "--set" 
"mapi_usock=/var/tmp/mtest-3090/.s.monetdb.36196" "--set" "monet_prompt=" 
"--forcemito" "--set" "mal_listing=2" 
"--dbpath=/home/niels/scratch/rc-clean/Linux-x86_64/var/MonetDB/mTests_sql_test_BugTracker-2014"
 "--set" "mal_listing=0" "--set" "embedded_r=yes"
+# 18:33:32 >  
+
+# 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 = 36196
+# cmdline opt  mapi_usock = /var/tmp/mtest-3090/.s.monetdb.36196
+# 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-2014
+# cmdline opt  mal_listing = 0
+# cmdline opt  embedded_r = yes
+# cmdline opt  gdk_debug = 536870922
+
+# 18:33:32 >  
+# 18:33:32 >  "mclient" "-lsql" "-ftest" "-Eutf-8" "-i" "-e" 
"--host=/var/tmp/mtest-3090" "--port=36196"
+# 18:33:32 >  
+
+
+# 18:33:32 >  
+# 18:33:32 >  "Done."
+# 18:33:32 >  
+
diff --git a/sql/test/BugTracker-2014/Tests/ifthenelse.Bug-3629.stable.out 
b/sql/test/BugTracker-2014/Tests/ifthenelse.Bug-3629.stable.out
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2014/Tests/ifthenelse.Bug-3629.stable.out
@@ -0,0 +1,65 @@
+stdout of test 'ifthenelse.Bug-3629` in directory 'sql/test/BugTracker-2014` 
itself:
+
+
+# 18:33:32 >  
+# 18:33:32 >  "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" 
"mapi_open=true" "--set" "mapi_port=36196" "--set" 
"mapi_usock=/var/tmp/mtest-3090/.s.monetdb.36196" "--set" "monet_prompt=" 
"--forcemito" "--set" "mal_listing=2" 
"--dbpath=/home/niels/scratch/rc-clean/Linux-x86_64/var/MonetDB/mTests_sql_test_BugTracker-2014"
 "--set" "mal_listing=0" "--set" "embedded_r=yes"
+# 18:33:32 >  
+
+# MonetDB 5 server v11.19.4
+# This is an unreleased version
+# Serving database 'mTests_sql_test_BugTracker-2014', 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-2014 MonetDB B.V., all rights reserved
+# Visit http://www.monetdb.org/ for further information
+# Listening for connection requests on mapi:monetdb://localhost.nes.nl:36196/
+# Listening for UNIX domain connection requests on 
mapi:monetdb:///var/tmp/mtest-3090/.s.monetdb.36196
+# MonetDB/GIS module loaded
+# MonetDB/SQL module loaded
+# MonetDB/R   module loaded
+
+Ready.
+
+# 18:33:32 >  
+# 18:33:32 >  "mclient" "-lsql" "-ftest" "-Eutf-8" "-i" "-e" 
"--host=/var/tmp/mtest-3090" "--port=36196"
+# 18:33:32 >  
+
+#START TRANSACTION;
+#CREATE FUNCTION test(b1 BOOLEAN)
+#RETURNS INTEGER
+#BEGIN
+#  IF b1 THEN RETURN 1;
+#  ELSEIF NOT(b1) THEN RETURN 0;
+#  ELSE RETURN NULL;
+#  END IF;
+#END;
+#SELECT test(true), test(false), test(null);
+% .L1, .L2,    .L2 # table_name
+% L1,  L2,     test_single_value # name
+% int, int,    int # type
+% 1,   1,      11 # length
+[ 1,   0,      NULL    ]
+#select test(true);
+% .L # table_name
+% test_single_value # name
+% int # type
+% 1 # length
+[ 1    ]
+#select test(false);
+% .L # table_name
+% test_single_value # name
+% int # type
+% 1 # length
+[ 0    ]
+#select test(null);
+% .L # table_name
+% test_single_value # name
+% int # type
+% 11 # length
+[ NULL ]
+
+# 18:33:32 >  
+# 18:33:32 >  "Done."
+# 18:33:32 >  
+
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to