Loading mysql-test/r/func_str.result +7 −0 Original line number Diff line number Diff line Loading @@ -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 mysql-test/r/outfile.result +29 B (988 B) File changed.No diff preview for this file type. View original file View changed file mysql-test/t/func_str.test +8 −1 Original line number Diff line number Diff line Loading @@ -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 mysql-test/t/outfile.test +0 −1 Original line number Diff line number Diff line Loading @@ -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 Loading sql/item_strfunc.cc +1 −1 Original line number Diff line number Diff line Loading @@ -2489,7 +2489,7 @@ String *Item_load_file::val_str(String *str) (void) fn_format(path, file_name->c_ptr(), mysql_real_data_home, "", MY_RELATIVE_PATH | MY_UNPACK_FILENAME); if (!my_stat(path, &stat_info, MYF(MY_WME))) if (!my_stat(path, &stat_info, MYF(0))) goto err; if (!(stat_info.st_mode & S_IROTH)) Loading Loading
mysql-test/r/func_str.result +7 −0 Original line number Diff line number Diff line Loading @@ -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
mysql-test/r/outfile.result +29 B (988 B) File changed.No diff preview for this file type. View original file View changed file
mysql-test/t/func_str.test +8 −1 Original line number Diff line number Diff line Loading @@ -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
mysql-test/t/outfile.test +0 −1 Original line number Diff line number Diff line Loading @@ -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 Loading
sql/item_strfunc.cc +1 −1 Original line number Diff line number Diff line Loading @@ -2489,7 +2489,7 @@ String *Item_load_file::val_str(String *str) (void) fn_format(path, file_name->c_ptr(), mysql_real_data_home, "", MY_RELATIVE_PATH | MY_UNPACK_FILENAME); if (!my_stat(path, &stat_info, MYF(MY_WME))) if (!my_stat(path, &stat_info, MYF(0))) goto err; if (!(stat_info.st_mode & S_IROTH)) Loading