17
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21
22
#include <drizzled/function/str/strfunc.h>
22
23
#include <drizzled/function/str/load_file.h>
23
24
#include <drizzled/error.h>
24
25
#include <drizzled/data_home.h>
25
26
#include <drizzled/session.h>
34
28
String *Item_load_file::val_str(String *str)
42
36
if (!(file_name= args[0]->val_str(str)))
45
(void) internal::fn_format(path, file_name->c_ptr(), drizzle_real_data_home, "",
39
(void) fn_format(path, file_name->c_ptr(), drizzle_real_data_home, "",
46
40
MY_RELATIVE_PATH | MY_UNPACK_FILENAME);
48
42
/* Read only allowed from within dir specified by secure_file_priv */