summaryrefslogtreecommitdiff
path: root/mysql-test/t/loaddata.test
diff options
context:
space:
mode:
authorunknown <monty@narttu.mysql.fi>2003-05-05 14:52:39 +0300
committerunknown <monty@narttu.mysql.fi>2003-05-05 14:52:39 +0300
commitafe9738efb8d9704b66f6b7cea57ccb011d79a1a (patch)
tree0a0a9b4c2141cf6eab3481e55e5fe8466bd876f1 /mysql-test/t/loaddata.test
parent38b188bf9a921d8a253e2692b26de8caac4fc4aa (diff)
downloadmariadb-git-afe9738efb8d9704b66f6b7cea57ccb011d79a1a.tar.gz
Fixed that reading a DATE string of 000000 is interpreted as 0000-00-00 instead of 2000-00-00
sql/time.cc: Removed not used code Fixed that reading a DATE string of 000000 is interpreted as 0000-00-00 instead of 2000-00-00
Diffstat (limited to 'mysql-test/t/loaddata.test')
-rw-r--r--mysql-test/t/loaddata.test11
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/t/loaddata.test b/mysql-test/t/loaddata.test
new file mode 100644
index 00000000000..ceb5c47af11
--- /dev/null
+++ b/mysql-test/t/loaddata.test
@@ -0,0 +1,11 @@
+#
+# Some simple test of load data
+#
+
+drop table if exists t1;
+
+create table t1 (a date, b date, c date not null, d date);
+load data infile '../../std_data/loaddata1.dat' into table t1 fields terminated by ',';
+load data infile '../../std_data/loaddata1.dat' into table t1 fields terminated by ',' IGNORE 2 LINES;
+SELECT * from t1;
+drop table t1;