Changeset: 1e216af13eec for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=1e216af13eec
Added Files:
        sql/test/copy/Tests/incorrect_columns.sql
Modified Files:
        sql/test/copy/Tests/All
Branch: Jul2015
Log Message:

Add test for bug 3797


diffs (28 lines):

diff --git a/sql/test/copy/Tests/All b/sql/test/copy/Tests/All
--- a/sql/test/copy/Tests/All
+++ b/sql/test/copy/Tests/All
@@ -11,3 +11,4 @@ overflow_error
 format_date
 key_copy
 nonutf8
+incorrect_columns
diff --git a/sql/test/copy/Tests/incorrect_columns.sql 
b/sql/test/copy/Tests/incorrect_columns.sql
new file mode 100644
--- /dev/null
+++ b/sql/test/copy/Tests/incorrect_columns.sql
@@ -0,0 +1,15 @@
+-- test the situation where the number of column values are incorrect
+create table t_columns(i int, t string);
+
+copy 5 records into t_columns from stdin delimiters ',','\n' best effort;
+1,hello
+2
+no tag
+3,too much, data
+4,world
+
+select * from t_columns;
+
+select * from sys.rejects();
+
+drop table t_columns;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to