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/func_str.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/func_str.test')
-rw-r--r-- | mysql-test/t/func_str.test | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mysql-test/t/func_str.test b/mysql-test/t/func_str.test index 8afbe673ce3..c2f76dbac43 100644 --- a/mysql-test/t/func_str.test +++ b/mysql-test/t/func_str.test @@ -662,4 +662,11 @@ select rpad(i, 7, ' ') as t from t1; --disable_metadata drop table t1; -# End of 4.1 tests +# +# Bug #10418: LOAD_FILE does not behave like in manual if file does not exist +# + +select load_file("lkjlkj"); +select ifnull(load_file("lkjlkj"),"it's null"); + +--echo End of 4.1 tests |