Changeset: 440f4e5a5586 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=440f4e5a5586
Added Files:
        sql/test/BugTracker-2014/Tests/ifthenelse.Bug-3546.stable.out.int128
        sql/test/BugTracker-2014/Tests/round.Bug-3542.stable.err.int128
        sql/test/BugTracker-2014/Tests/round.Bug-3542.stable.out.int128
Branch: default
Log Message:

ifthenelse.Bug-3546 & round.Bug-3542: approved int128 output


diffs (177 lines):

diff --git 
a/sql/test/BugTracker-2014/Tests/ifthenelse.Bug-3546.stable.out.int128 
b/sql/test/BugTracker-2014/Tests/ifthenelse.Bug-3546.stable.out.int128
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2014/Tests/ifthenelse.Bug-3546.stable.out.int128
@@ -0,0 +1,61 @@
+stdout of test 'ifthenelse.Bug-3546` in directory 'sql/test/BugTracker-2014` 
itself:
+
+
+# 20:44:31 >  
+# 20:44:31 >  "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" 
"mapi_open=true" "--set" "mapi_port=34821" "--set" 
"mapi_usock=/var/tmp/mtest-21670/.s.monetdb.34821" "--set" "monet_prompt=" 
"--forcemito" "--set" "mal_listing=2" 
"--dbpath=/home/niels/scratch/rc-monetdb/Linux-x86_64/var/MonetDB/mTests_sql_test_BugTracker-2014"
 "--set" "mal_listing=0" "--set" "embedded_r=yes"
+# 20:44:31 >  
+
+# MonetDB 5 server v11.19.0
+# 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.334 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:34821/
+# Listening for UNIX domain connection requests on 
mapi:monetdb:///var/tmp/mtest-21670/.s.monetdb.34821
+# MonetDB/GIS module loaded
+# MonetDB/SQL module loaded
+# MonetDB/R   module loaded
+
+Ready.
+
+# 20:44:31 >  
+# 20:44:31 >  "mclient" "-lsql" "-ftest" "-Eutf-8" "-i" "-e" 
"--host=/var/tmp/mtest-21670" "--port=34821"
+# 20:44:31 >  
+
+#start transaction;
+#create table t(r integer,a integer);
+#insert into t values (1,42),(2,0),(3,null); 
+[ 3    ]
+#select * from t;
+% sys.t,       sys.t # table_name
+% r,   a # name
+% int, int # type
+% 1,   2 # length
+[ 1,   42      ]
+[ 2,   0       ]
+[ 3,   NULL    ]
+#select case when not (a is null) and a > 0.0 then r/a else -1 end as s from t;
+% sys.L # table_name
+% s # name
+% int # type
+% 2 # length
+[ 0    ]
+[ -1   ]
+[ -1   ]
+#select case when not (a is null) and a > 0.0 then 1.0*r/a else -1 end as r 
from t;
+% sys.L # table_name
+% r # name
+% decimal # type
+% 24 # length
+[ 0.00 ]
+[ -1.00        ]
+[ -1.00        ]
+#rollback;
+
+# 20:44:31 >  
+# 20:44:31 >  "Done."
+# 20:44:31 >  
+
diff --git a/sql/test/BugTracker-2014/Tests/round.Bug-3542.stable.err.int128 
b/sql/test/BugTracker-2014/Tests/round.Bug-3542.stable.err.int128
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2014/Tests/round.Bug-3542.stable.err.int128
@@ -0,0 +1,38 @@
+stderr of test 'round.Bug-3542` in directory 'sql/test/BugTracker-2014` itself:
+
+
+# 11:02:07 >  
+# 11:02:07 >  "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" 
"mapi_open=true" "--set" "mapi_port=32577" "--set" 
"mapi_usock=/var/tmp/mtest-6484/.s.monetdb.32577" "--set" "monet_prompt=" 
"--forcemito" "--set" "mal_listing=2" 
"--dbpath=/home/niels/scratch/rc-monetdb/Linux-x86_64/var/MonetDB/mTests_sql_test_BugTracker-2014"
 "--set" "mal_listing=0" "--set" "embedded_r=yes"
+# 11:02:07 >  
+
+# builtin opt  gdk_dbpath = 
/home/niels/scratch/rc-monetdb/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 = 32577
+# cmdline opt  mapi_usock = /var/tmp/mtest-6484/.s.monetdb.32577
+# cmdline opt  monet_prompt = 
+# cmdline opt  mal_listing = 2
+# cmdline opt  gdk_dbpath = 
/home/niels/scratch/rc-monetdb/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
+
+# 11:02:08 >  
+# 11:02:08 >  "mclient" "-lsql" "-ftest" "-Eutf-8" "-i" "-e" 
"--host=/var/tmp/mtest-6484" "--port=32577"
+# 11:02:08 >  
+
+
+
+# 11:02:08 >  
+# 11:02:08 >  "Done."
+# 11:02:08 >  
+
diff --git a/sql/test/BugTracker-2014/Tests/round.Bug-3542.stable.out.int128 
b/sql/test/BugTracker-2014/Tests/round.Bug-3542.stable.out.int128
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2014/Tests/round.Bug-3542.stable.out.int128
@@ -0,0 +1,63 @@
+stdout of test 'round.Bug-3542` in directory 'sql/test/BugTracker-2014` itself:
+
+
+# 11:02:07 >  
+# 11:02:07 >  "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" 
"mapi_open=true" "--set" "mapi_port=32577" "--set" 
"mapi_usock=/var/tmp/mtest-6484/.s.monetdb.32577" "--set" "monet_prompt=" 
"--forcemito" "--set" "mal_listing=2" 
"--dbpath=/home/niels/scratch/rc-monetdb/Linux-x86_64/var/MonetDB/mTests_sql_test_BugTracker-2014"
 "--set" "mal_listing=0" "--set" "embedded_r=yes"
+# 11:02:07 >  
+
+# MonetDB 5 server v11.19.0
+# 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.334 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:32577/
+# Listening for UNIX domain connection requests on 
mapi:monetdb:///var/tmp/mtest-6484/.s.monetdb.32577
+# MonetDB/GIS module loaded
+# MonetDB/SQL module loaded
+# MonetDB/R   module loaded
+
+Ready.
+
+# 11:02:08 >  
+# 11:02:08 >  "mclient" "-lsql" "-ftest" "-Eutf-8" "-i" "-e" 
"--host=/var/tmp/mtest-6484" "--port=32577"
+# 11:02:08 >  
+
+#CREATE TABLE test_num_data (id integer, val numeric(18,10));
+#INSERT INTO test_num_data VALUES (1, '-0.0');
+[ 1    ]
+#INSERT INTO test_num_data VALUES (2, '-34338492.215397047');
+[ 1    ]
+#SELECT * FROM test_num_data;
+% sys.test_num_data,   sys.test_num_data # table_name
+% id,  val # name
+% int, decimal # type
+% 1,   20 # length
+[ 1,   0.0000000000    ]
+[ 2,   -34338492.2153970470    ]
+#SELECT t1.id, t2.id, t1.val * t2.val FROM test_num_data t1, test_num_data t2;
+% sys.t1,      sys.t2, sys.L # table_name
+% id,  id,     sql_mul_val # name
+% int, int,    decimal # type
+% 1,   1,      38 # length
+[ 1,   1,      0.00000000000000000000  ]
+[ 1,   2,      0.00000000000000000000  ]
+[ 2,   1,      0.00000000000000000000  ]
+[ 2,   2,      1179132047626883.59686213585632020900   ]
+#SELECT t1.id, t2.id, round(t1.val * t2.val, 30) FROM test_num_data t1, 
test_num_data t2;
+% sys.t1,      sys.t2, sys.L # table_name
+% id,  id,     round_sql_mul_val # name
+% int, int,    decimal # type
+% 1,   1,      10 # length
+[ 1,   1,      0.00000000000000000000  ]
+[ 1,   2,      0.00000000000000000000  ]
+[ 2,   1,      0.00000000000000000000  ]
+[ 2,   2,      1179132047626883.59686213585632020900   ]
+#drop table test_num_data;
+
+# 11:02:08 >  
+# 11:02:08 >  "Done."
+# 11:02:08 >  
+
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to