summaryrefslogtreecommitdiff
path: root/mysql-test/r/loaddata.result
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/r/loaddata.result
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/r/loaddata.result')
-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;