diff options
author | unknown <tnurnberg@mysql.com> | 2006-05-08 04:37:58 +0200 |
---|---|---|
committer | unknown <tnurnberg@mysql.com> | 2006-05-08 04:37:58 +0200 |
commit | dd934da9159a6eb69fdd7fdd91a78c801a0b7caa (patch) | |
tree | 8a167a22c348c6373111e6e56b7f878623031af9 /mysql-test/t/outfile.test | |
parent | e4e67d587e5714a4faaa60da80f0fc51ac99d7a7 (diff) | |
download | mariadb-git-dd934da9159a6eb69fdd7fdd91a78c801a0b7caa.tar.gz |
Bug#10418: LOAD_FILE does not behave like in manual if file does not exist
load_file() string-function should return NULL rather than throw an error if
the file doesn't exist, as per the manual.
mysql-test/t/outfile.test:
expect NULL rather than error if file given to load_file() doesn't exist
mysql-test/t/func_str.test:
show that load_file() will return NULL rather than throw an error
if file doesn't exist
mysql-test/r/outfile.result:
expect NULL rather than error if file given to load_file() doesn't exist
mysql-test/r/func_str.result:
expect NULL rather than error if file given to load_file() doesn't exist
sql/item_strfunc.cc:
load_file() should return NULL as per the docs if file not found,
rather than throw an error
Diffstat (limited to 'mysql-test/t/outfile.test')
-rw-r--r-- | mysql-test/t/outfile.test | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/mysql-test/t/outfile.test b/mysql-test/t/outfile.test index a74bebe1460..81fcc7fd564 100644 --- a/mysql-test/t/outfile.test +++ b/mysql-test/t/outfile.test @@ -38,7 +38,6 @@ select load_file(concat(@tmpdir,"/outfile-test.3")); #--error 1086 #eval select * into dumpfile "$MYSQL_TEST_DIR/var/tmp/outfile-test.3" from t1; #enable_query_log; ---error 13,2 select load_file(concat(@tmpdir,"/outfile-test.not-exist")); --exec rm $MYSQL_TEST_DIR/var/tmp/outfile-test.1 --exec rm $MYSQL_TEST_DIR/var/tmp/outfile-test.2 |