summaryrefslogtreecommitdiff
path: root/mysql-test/t/loaddata.test
diff options
context:
space:
mode:
authorGuilhem Bichot <guilhem.bichot@oracle.com>2011-04-26 11:52:58 +0200
committerGuilhem Bichot <guilhem.bichot@oracle.com>2011-04-26 11:52:58 +0200
commit52d51b75e88e811221b66115494a13e52bf0d1a8 (patch)
tree0a8a53b727e7b8a23e0a5c3f4f561c924e0097bc /mysql-test/t/loaddata.test
parenta3f7f01da66cc7d8be6e04184ef1f2c157f813f8 (diff)
parent08bf3ddde99f6a6014efe9ecf10a976bdd741a8d (diff)
downloadmariadb-git-52d51b75e88e811221b66115494a13e52bf0d1a8.tar.gz
merge from 5.1
Diffstat (limited to 'mysql-test/t/loaddata.test')
-rw-r--r--mysql-test/t/loaddata.test15
1 files changed, 15 insertions, 0 deletions
diff --git a/mysql-test/t/loaddata.test b/mysql-test/t/loaddata.test
index 8e5cba01d28..0bb3cf64444 100644
--- a/mysql-test/t/loaddata.test
+++ b/mysql-test/t/loaddata.test
@@ -615,4 +615,19 @@ DROP TABLE t1;
let $MYSQLD_DATADIR= `select @@datadir`;
remove_file $MYSQLD_DATADIR/test/t1.dat;
+--echo #
+--echo # Bug#11765141 - 58072: LOAD DATA INFILE: LEAKS IO CACHE MEMORY
+--echo # WHEN ERROR OCCURS
+--echo #
+
+--let $file=$MYSQLTEST_VARDIR/tmp/bug11735141.txt
+--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
+--eval SELECT '1\n' INTO DUMPFILE '$file'
+
+create table t1(a point);
+--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
+--error ER_CANT_CREATE_GEOMETRY_OBJECT
+--eval LOAD DATA INFILE '$file' INTO TABLE t1
+drop table t1;
+
--echo End of 5.1 tests