summaryrefslogtreecommitdiff
path: root/mysql-test/main/mysql.test
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2019-02-07 13:59:31 +0100
committerOleksandr Byelkin <sanja@mariadb.com>2019-02-07 13:59:31 +0100
commit65c5ef9b495bac078ad2a502a75801c7cfe5b95a (patch)
tree266859fc4e22dcd18112a25e8a3e4f9d93a043a0 /mysql-test/main/mysql.test
parent7293ce0ee81f05b1ec3ac9ddcc88bfbee4030e55 (diff)
parent625994b7cc4ebd0bc2652ae80b93386aa4b766ac (diff)
downloadmariadb-git-65c5ef9b495bac078ad2a502a75801c7cfe5b95a.tar.gz
dirty merge
Diffstat (limited to 'mysql-test/main/mysql.test')
-rw-r--r--mysql-test/main/mysql.test23
1 files changed, 23 insertions, 0 deletions
diff --git a/mysql-test/main/mysql.test b/mysql-test/main/mysql.test
index c65860eb822..66ccef18327 100644
--- a/mysql-test/main/mysql.test
+++ b/mysql-test/main/mysql.test
@@ -680,3 +680,26 @@ show create table "a1\""b1";
select * from "a1\""b1";
drop table "a1\""b1";
set sql_mode=default;
+
+#
+# mysql --local-infile
+#
+--let $ldli = load data local infile '$MYSQLTEST_VARDIR/tmp/bug.sql' into table test.t1;
+create table t1 (a text);
+--exec $MYSQL -e "$ldli"
+select count(*) from t1; truncate table t1;
+--exec $MYSQL --enable-local-infile -e "$ldli"
+select count(*) from t1; truncate table t1;
+--error 1
+--exec $MYSQL --disable-local-infile -e "$ldli"
+select count(*) from t1; truncate table t1;
+--echo ### FIXME: update libmariadb
+#--error 1
+#--exec $MYSQL -e "/*q*/$ldli"
+#select count(*) from t1; truncate table t1;
+#--exec $MYSQL --enable-local-infile -e "/*q*/$ldli"
+#select count(*) from t1; truncate table t1;
+# --error 1
+# --exec $MYSQL --disable-local-infile -e "/*q*/$ldli"
+#select count(*) from t1; truncate table t1;
+drop table t1;