Changeset: 03e3845c01e0 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=03e3845c01e0
Added Files:
        sql/test/BugTracker-2017/Tests/prepare.Bug-6133.sql
        sql/test/BugTracker-2017/Tests/prepare.Bug-6133.stable.err
        sql/test/BugTracker-2017/Tests/prepare.Bug-6133.stable.out
Modified Files:
        sql/test/BugTracker-2017/Tests/All
Branch: Dec2016
Log Message:

added test for bug 6133


diffs (128 lines):

diff --git a/sql/test/BugTracker-2017/Tests/All 
b/sql/test/BugTracker-2017/Tests/All
--- a/sql/test/BugTracker-2017/Tests/All
+++ b/sql/test/BugTracker-2017/Tests/All
@@ -20,3 +20,4 @@ str2decimal.Bug-6202
 integer_addition_overflow.Bug-6205
 dce_bug-6177
 crash_on_NULL_ptr.Bug-6130
+prepare.Bug-6133
diff --git a/sql/test/BugTracker-2017/Tests/prepare.Bug-6133.sql 
b/sql/test/BugTracker-2017/Tests/prepare.Bug-6133.sql
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2017/Tests/prepare.Bug-6133.sql
@@ -0,0 +1,25 @@
+
+CREATE TABLE messages (
+       "id"           BIGINT        NOT NULL,
+       "content"      VARCHAR(2000) NOT NULL,
+       "isimage"      BOOLEAN       NOT NULL DEFAULT false,
+       "creationdate" TIMESTAMP(3) WITH TIME ZONE NOT NULL,
+       "locationip"   VARCHAR(40)   NOT NULL,
+       "browserused"  VARCHAR(40)   NOT NULL,
+       "language"     VARCHAR(40),
+       "length"       INTEGER       NOT NULL,
+       "creator"      BIGINT        NOT NULL,
+       "forum_id"     BIGINT        NOT NULL,
+       "place_id"     BIGINT        NOT NULL,
+       "reply"        BIGINT,
+       "post_id"      BIGINT        NOT NULL
+);
+
+PREPARE
+INSERT INTO messages(id, content, isimage, creationdate, locationip, 
browserused, "language", length, creator, place_id, forum_id, reply, post_id)
+SELECT tnew.id, tnew.content, false, tnew.creationdate, tnew.locationip, 
tnew.browserused, NULL, tnew.length, tnew.person_id, tnew.place_id, 
parent.forum_id, tnew.comment_id, parent.post_id
+FROM ( VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) ) AS tnew(id, content, creationdate, 
locationip, browserused, length, person_id, place_id, parent_id)
+JOIN messages parent ON ( parent.id = tnew.parent_id );
+
+DROP TABLE messages;
+
diff --git a/sql/test/BugTracker-2017/Tests/prepare.Bug-6133.stable.err 
b/sql/test/BugTracker-2017/Tests/prepare.Bug-6133.stable.err
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2017/Tests/prepare.Bug-6133.stable.err
@@ -0,0 +1,34 @@
+stderr of test 'prepare.Bug-6133` in directory 'sql/test/BugTracker-2017` 
itself:
+
+
+# 20:13:43 >  
+# 20:13:43 >  "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" 
"mapi_open=true" "--set" "mapi_port=38809" "--set" 
"mapi_usock=/var/tmp/mtest-867/.s.monetdb.38809" "--set" "monet_prompt=" 
"--forcemito" 
"--dbpath=/home/niels/scratch/rc-clean/Linux-x86_64/var/MonetDB/mTests_sql_test_BugTracker-2017"
+# 20:13:43 >  
+
+# 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 = 38809
+# cmdline opt  mapi_usock = /var/tmp/mtest-867/.s.monetdb.38809
+# cmdline opt  monet_prompt = 
+# cmdline opt  gdk_dbpath = 
/home/niels/scratch/rc-clean/Linux-x86_64/var/MonetDB/mTests_sql_test_BugTracker-2017
+# cmdline opt  gdk_debug = 536870922
+
+# 20:13:43 >  
+# 20:13:43 >  "mclient" "-lsql" "-ftest" "-Eutf-8" "-i" "-e" 
"--host=/var/tmp/mtest-867" "--port=38809"
+# 20:13:43 >  
+
+
+# 20:13:43 >  
+# 20:13:43 >  "Done."
+# 20:13:43 >  
+
diff --git a/sql/test/BugTracker-2017/Tests/prepare.Bug-6133.stable.out 
b/sql/test/BugTracker-2017/Tests/prepare.Bug-6133.stable.out
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2017/Tests/prepare.Bug-6133.stable.out
@@ -0,0 +1,46 @@
+stdout of test 'prepare.Bug-6133` in directory 'sql/test/BugTracker-2017` 
itself:
+
+
+# 20:13:43 >  
+# 20:13:43 >  "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" 
"mapi_open=true" "--set" "mapi_port=38809" "--set" 
"mapi_usock=/var/tmp/mtest-867/.s.monetdb.38809" "--set" "monet_prompt=" 
"--forcemito" 
"--dbpath=/home/niels/scratch/rc-clean/Linux-x86_64/var/MonetDB/mTests_sql_test_BugTracker-2017"
+# 20:13:43 >  
+
+# MonetDB 5 server v11.25.6
+# This is an unreleased version
+# Serving database 'mTests_sql_test_BugTracker-2017', using 4 threads
+# Compiled for x86_64-unknown-linux-gnu/64bit with 128bit integers
+# Found 7.332 GiB available main-memory.
+# Copyright (c) 1993-July 2008 CWI.
+# Copyright (c) August 2008-2017 MonetDB B.V., all rights reserved
+# Visit http://www.monetdb.org/ for further information
+# Listening for connection requests on mapi:monetdb://localhost.nes.nl:38809/
+# Listening for UNIX domain connection requests on 
mapi:monetdb:///var/tmp/mtest-867/.s.monetdb.38809
+# MonetDB/GIS module loaded
+# MonetDB/SQL module loaded
+
+Ready.
+
+# 20:13:43 >  
+# 20:13:43 >  "mclient" "-lsql" "-ftest" "-Eutf-8" "-i" "-e" 
"--host=/var/tmp/mtest-867" "--port=38809"
+# 20:13:43 >  
+
+#CREATE TABLE messages (
+#      "id"           BIGINT        NOT NULL,
+#      "content"      VARCHAR(2000) NOT NULL,
+#      "isimage"      BOOLEAN       NOT NULL DEFAULT false,
+#      "creationdate" TIMESTAMP(3) WITH TIME ZONE NOT NULL,
+#      "locationip"   VARCHAR(40)   NOT NULL,
+#      "browserused"  VARCHAR(40)   NOT NULL,
+#      "language"     VARCHAR(40),
+#      "length"       INTEGER       NOT NULL,
+#      "creator"      BIGINT        NOT NULL,
+#      "forum_id"     BIGINT        NOT NULL,
+#      "place_id"     BIGINT        NOT NULL,
+#      "reply"        BIGINT,
+#      "post_id"      BIGINT        NOT NULL
+#DROP TABLE messages;
+
+# 20:13:43 >  
+# 20:13:43 >  "Done."
+# 20:13:43 >  
+
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to