Changeset: 34fcf4e7226d for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=34fcf4e7226d
Added Files:
sql/test/BugTracker-2012/Tests/cast-tinyint-Bug-3137.sql
sql/test/BugTracker-2012/Tests/cast-tinyint-Bug-3137.stable.err
sql/test/BugTracker-2012/Tests/cast-tinyint-Bug-3137.stable.out
Modified Files:
sql/test/BugTracker-2012/Tests/All
Branch: Jul2012
Log Message:
Test for bug 3137.
diffs (120 lines):
diff --git a/sql/test/BugTracker-2012/Tests/All
b/sql/test/BugTracker-2012/Tests/All
--- a/sql/test/BugTracker-2012/Tests/All
+++ b/sql/test/BugTracker-2012/Tests/All
@@ -47,3 +47,4 @@ insert_serial_with_unique_key.Bug-3091
with_and_exists.Bug-3099
index_column_crash.Bug-3113
foreign_key.Bug-3114
+cast-tinyint-Bug-3137
diff --git a/sql/test/BugTracker-2012/Tests/cast-tinyint-Bug-3137.sql
b/sql/test/BugTracker-2012/Tests/cast-tinyint-Bug-3137.sql
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2012/Tests/cast-tinyint-Bug-3137.sql
@@ -0,0 +1,1 @@
+select cast('10' as tinyint) as not_ok_tinyint, cast('10' as int) as ok_int,
cast('10' as smallint) as ok_smallint;
diff --git a/sql/test/BugTracker-2012/Tests/cast-tinyint-Bug-3137.stable.err
b/sql/test/BugTracker-2012/Tests/cast-tinyint-Bug-3137.stable.err
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2012/Tests/cast-tinyint-Bug-3137.stable.err
@@ -0,0 +1,37 @@
+stderr of test 'cast-tinyint-Bug-3137` in directory 'test/BugTracker-2012`
itself:
+
+
+# 16:45:44 >
+# 16:45:44 > "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set"
"gdk_dbfarm=/ufs/sjoerd/Monet-stable/var/MonetDB" "--set" "mapi_open=true"
"--set" "mapi_port=34229" "--set" "monet_prompt=" "--trace" "--forcemito"
"--set" "mal_listing=2" "--dbname=mTests_test_BugTracker-2012" "--set"
"mal_listing=0"
+# 16:45:44 >
+
+# builtin opt gdk_dbname = demo
+# builtin opt gdk_dbfarm = /ufs/sjoerd/Monet-stable/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 = /ufs/sjoerd/Monet-stable/var/MonetDB
+# cmdline opt mapi_open = true
+# cmdline opt mapi_port = 34229
+# cmdline opt monet_prompt =
+# cmdline opt mal_listing = 2
+# cmdline opt gdk_dbname = mTests_test_BugTracker-2012
+# cmdline opt mal_listing = 0
+
+# 16:45:44 >
+# 16:45:44 > "mclient" "-lsql" "-ftest" "-Eutf-8" "-i" "-e" "--host=madrid"
"--port=34229"
+# 16:45:44 >
+
+
+# 16:45:44 >
+# 16:45:44 > "Done."
+# 16:45:44 >
+
diff --git a/sql/test/BugTracker-2012/Tests/cast-tinyint-Bug-3137.stable.out
b/sql/test/BugTracker-2012/Tests/cast-tinyint-Bug-3137.stable.out
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2012/Tests/cast-tinyint-Bug-3137.stable.out
@@ -0,0 +1,59 @@
+stdout of test 'cast-tinyint-Bug-3137` in directory 'test/BugTracker-2012`
itself:
+
+
+# 16:45:44 >
+# 16:45:44 > "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set"
"gdk_dbfarm=/ufs/sjoerd/Monet-stable/var/MonetDB" "--set" "mapi_open=true"
"--set" "mapi_port=34229" "--set" "monet_prompt=" "--trace" "--forcemito"
"--set" "mal_listing=2" "--dbname=mTests_test_BugTracker-2012" "--set"
"mal_listing=0"
+# 16:45:44 >
+
+# MonetDB 5 server v11.11.8 (hg id: 087fd3ac9177)
+# This is an unreleased version
+# Serving database 'mTests_test_BugTracker-2012', 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-2012 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:34229/
+# MonetDB/GIS module loaded
+# MonetDB/JAQL module loaded
+# MonetDB/SQL module loaded
+
+Ready.
+# SQL catalog created, loading sql scripts once
+# loading sql script: 09_like.sql
+# loading sql script: 10_math.sql
+# loading sql script: 11_times.sql
+# loading sql script: 12_url.sql
+# loading sql script: 13_date.sql
+# loading sql script: 14_inet.sql
+# loading sql script: 15_history.sql
+# loading sql script: 16_tracelog.sql
+# loading sql script: 17_compress.sql
+# loading sql script: 18_dictionary.sql
+# loading sql script: 19_cluster.sql
+# loading sql script: 20_vacuum.sql
+# loading sql script: 21_dependency_functions.sql
+# loading sql script: 22_clients.sql
+# loading sql script: 23_skyserver.sql
+# loading sql script: 24_zorder.sql
+# loading sql script: 25_debug.sql
+# loading sql script: 39_analytics.sql
+# loading sql script: 40_geom.sql
+# loading sql script: 80_udf.sql
+# loading sql script: 99_system.sql
+
+# 16:45:44 >
+# 16:45:44 > "mclient" "-lsql" "-ftest" "-Eutf-8" "-i" "-e" "--host=madrid"
"--port=34229"
+# 16:45:44 >
+
+#select cast('10' as tinyint) as not_ok_tinyint, cast('10' as int) as ok_int,
cast('10' as smallint) as ok_smallint;
+% ., ., . # table_name
+% not_ok_tinyint, ok_int, ok_smallint # name
+% tinyint, int, smallint # type
+% 2, 2, 2 # length
+[ 10, 10, 10 ]
+
+# 16:45:44 >
+# 16:45:44 > "Done."
+# 16:45:44 >
+
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list