Changeset: df58cfe6f8b9 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=df58cfe6f8b9
Added Files:
        sql/test/BugTracker-2016/Tests/data3987.csv
        sql/test/BugTracker-2016/Tests/malformed-copy-int.Bug-3987.sql.in
        sql/test/BugTracker-2016/Tests/malformed-copy-int.Bug-3987.stable.err
        sql/test/BugTracker-2016/Tests/malformed-copy-int.Bug-3987.stable.out
Branch: Jul2015
Log Message:

Added test for bug 3987.


diffs (143 lines):

diff --git a/sql/test/BugTracker-2016/Tests/data3987.csv 
b/sql/test/BugTracker-2016/Tests/data3987.csv
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2016/Tests/data3987.csv
@@ -0,0 +1,3 @@
+"a
+"b"    "c
+d"
diff --git a/sql/test/BugTracker-2016/Tests/malformed-copy-int.Bug-3987.sql.in 
b/sql/test/BugTracker-2016/Tests/malformed-copy-int.Bug-3987.sql.in
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2016/Tests/malformed-copy-int.Bug-3987.sql.in
@@ -0,0 +1,6 @@
+START TRANSACTION;
+
+CREATE TABLE test3987 (a TEXT, b BIGINT);
+COPY INTO test3987 FROM '$QTSTSRCDIR/data3987.csv' DELIMITERS '\t','\n','\"' 
NULL AS '<NULL>';
+
+ROLLBACK;
diff --git 
a/sql/test/BugTracker-2016/Tests/malformed-copy-int.Bug-3987.stable.err 
b/sql/test/BugTracker-2016/Tests/malformed-copy-int.Bug-3987.stable.err
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2016/Tests/malformed-copy-int.Bug-3987.stable.err
@@ -0,0 +1,40 @@
+stderr of test 'malformed-copy-int.Bug-3987` in directory 
'sql/test/BugTracker-2016` itself:
+
+
+# 14:56:59 >  
+# 14:56:59 >  "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" 
"mapi_open=true" "--set" "mapi_port=32759" "--set" 
"mapi_usock=/var/tmp/mtest-25832/.s.monetdb.32759" "--set" "monet_prompt=" 
"--forcemito" "--set" "mal_listing=2" 
"--dbpath=/ufs/sjoerd/Monet-stable/var/MonetDB/mTests_sql_test_BugTracker-2016" 
"--set" "mal_listing=0" "--set" "embedded_r=yes"
+# 14:56:59 >  
+
+# builtin opt  gdk_dbpath = /ufs/sjoerd/Monet-stable/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 = 32759
+# cmdline opt  mapi_usock = /var/tmp/mtest-25832/.s.monetdb.32759
+# cmdline opt  monet_prompt = 
+# cmdline opt  mal_listing = 2
+# cmdline opt  gdk_dbpath = 
/ufs/sjoerd/Monet-stable/var/MonetDB/mTests_sql_test_BugTracker-2016
+# cmdline opt  mal_listing = 0
+# cmdline opt  embedded_r = yes
+# cmdline opt  gdk_debug = 536870922
+
+# 14:57:00 >  
+# 14:57:00 >  "mclient" "-lsql" "-ftest" "-Eutf-8" "-i" "-e" 
"--host=/var/tmp/mtest-25832" "--port=32759"
+# 14:57:00 >  
+
+MAPI  = (monetdb) /var/tmp/mtest-25832/.s.monetdb.32759
+QUERY = COPY INTO test3987 FROM 
'/net/madrid/export/scratch1/sjoerd/src/MonetDB/stable/sql/test/BugTracker-2016/Tests/data3987.csv'
 DELIMITERS '\t','\n','\"' NULL AS '<NULL>';
+ERROR = !Failed to import table incomplete record at end of file:
+
+# 14:57:00 >  
+# 14:57:00 >  "Done."
+# 14:57:00 >  
+
diff --git 
a/sql/test/BugTracker-2016/Tests/malformed-copy-int.Bug-3987.stable.out 
b/sql/test/BugTracker-2016/Tests/malformed-copy-int.Bug-3987.stable.out
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2016/Tests/malformed-copy-int.Bug-3987.stable.out
@@ -0,0 +1,74 @@
+stdout of test 'malformed-copy-int.Bug-3987` in directory 
'sql/test/BugTracker-2016` itself:
+
+
+# 14:56:59 >  
+# 14:56:59 >  "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" 
"mapi_open=true" "--set" "mapi_port=32759" "--set" 
"mapi_usock=/var/tmp/mtest-25832/.s.monetdb.32759" "--set" "monet_prompt=" 
"--forcemito" "--set" "mal_listing=2" 
"--dbpath=/ufs/sjoerd/Monet-stable/var/MonetDB/mTests_sql_test_BugTracker-2016" 
"--set" "mal_listing=0" "--set" "embedded_r=yes"
+# 14:56:59 >  
+
+# MonetDB 5 server v11.21.20 (hg id: c6164da1961d+)
+# This is an unreleased version
+# Serving database 'mTests_sql_test_BugTracker-2016', using 8 threads
+# Compiled for x86_64-unknown-linux-gnu/64bit with 64bit OIDs and 128bit 
integers dynamically linked
+# Found 15.589 GiB available main-memory.
+# Copyright (c) 1993-July 2008 CWI.
+# Copyright (c) August 2008-2015 MonetDB B.V., all rights reserved
+# Visit http://www.monetdb.org/ for further information
+# Listening for connection requests on mapi:monetdb://madrid.da.cwi.nl:32759/
+# Listening for UNIX domain connection requests on 
mapi:monetdb:///var/tmp/mtest-25832/.s.monetdb.32759
+# MonetDB/GIS module loaded
+# Start processing logs sql/sql_logs version 52200
+# Finished processing logs sql/sql_logs
+# MonetDB/SQL module loaded
+# MonetDB/R   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_querylog.sql
+# loading sql script: 16_tracelog.sql
+# loading sql script: 17_temporal.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: 26_sysmon.sql
+# loading sql script: 27_rejects.sql
+# loading sql script: 39_analytics.sql
+# loading sql script: 39_analytics_hge.sql
+# loading sql script: 40_geom.sql
+# loading sql script: 40_json.sql
+# loading sql script: 40_json_hge.sql
+# loading sql script: 41_md5sum.sql
+# loading sql script: 45_uuid.sql
+# loading sql script: 46_gsl.sql
+# loading sql script: 51_sys_schema_extension.sql
+# loading sql script: 72_fits.sql
+# loading sql script: 74_netcdf.sql
+# loading sql script: 75_storagemodel.sql
+# loading sql script: 80_statistics.sql
+# loading sql script: 80_udf.sql
+# loading sql script: 80_udf_hge.sql
+# loading sql script: 85_bam.sql
+# loading sql script: 90_generator.sql
+# loading sql script: 90_generator_hge.sql
+# loading sql script: 99_system.sql
+
+# 14:57:00 >  
+# 14:57:00 >  "mclient" "-lsql" "-ftest" "-Eutf-8" "-i" "-e" 
"--host=/var/tmp/mtest-25832" "--port=32759"
+# 14:57:00 >  
+
+#START TRANSACTION;
+#CREATE TABLE test3987 (a TEXT, b BIGINT);
+#ROLLBACK;
+
+# 14:57:00 >  
+# 14:57:00 >  "Done."
+# 14:57:00 >  
+
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to