1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

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.
This commit is contained in:
tnurnberg@mysql.com
2006-05-08 04:37:58 +02:00
parent 0928ae9bf4
commit 21f4e8aadb
5 changed files with 16 additions and 3 deletions

View File

@@ -1000,3 +1000,10 @@ t
1000000
1
drop table t1;
select load_file("lkjlkj");
load_file("lkjlkj")
NULL
select ifnull(load_file("lkjlkj"),"it's null");
ifnull(load_file("lkjlkj"),"it's null")
it's null
End of 4.1 tests