summaryrefslogtreecommitdiff
path: root/mysql-test/r
diff options
context:
space:
mode:
authormonty@narttu.mysql.fi <>2003-05-05 14:52:39 +0300
committermonty@narttu.mysql.fi <>2003-05-05 14:52:39 +0300
commit3e1afec6719e9891983bfea19ff18e0d39cdb275 (patch)
tree0a0a9b4c2141cf6eab3481e55e5fe8466bd876f1 /mysql-test/r
parent5f028be2e6c8e7732c66294c87fff916924d5311 (diff)
downloadmariadb-git-3e1afec6719e9891983bfea19ff18e0d39cdb275.tar.gz
Fixed that reading a DATE string of 000000 is interpreted as 0000-00-00 instead of 2000-00-00
Diffstat (limited to 'mysql-test/r')
-rw-r--r--mysql-test/r/loaddata.result11
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/r/loaddata.result b/mysql-test/r/loaddata.result
new file mode 100644
index 00000000000..d121a4e6c40
--- /dev/null
+++ b/mysql-test/r/loaddata.result
@@ -0,0 +1,11 @@
+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;
+a b c d
+0000-00-00 NULL 0000-00-00 0000-00-00
+0000-00-00 0000-00-00 0000-00-00 0000-00-00
+2003-03-03 2003-03-03 2003-03-03 NULL
+2003-03-03 2003-03-03 2003-03-03 NULL
+drop table t1;