mirror of
https://github.com/MariaDB/server.git
synced 2026-04-21 07:45:32 +02:00
Crude "auto-load-data-local-infile" mode
Disable LOAD DATA LOCAL INFILE suport by default and auto-enable it for the duration of one query, if the query string starts with the word "load". In all other cases the application should enable LOAD DATA LOCAL INFILE support explicitly.
This commit is contained in:
parent
21f9037186
commit
2175bfce3e
9 changed files with 90 additions and 11 deletions
|
|
@ -6045,7 +6045,6 @@ void do_connect(struct st_command *command)
|
|||
#endif
|
||||
if (opt_compress || con_compress)
|
||||
mysql_options(con_slot->mysql, MYSQL_OPT_COMPRESS, NullS);
|
||||
mysql_options(con_slot->mysql, MYSQL_OPT_LOCAL_INFILE, 0);
|
||||
mysql_options(con_slot->mysql, MYSQL_SET_CHARSET_NAME,
|
||||
charset_info->csname);
|
||||
if (opt_charsets_dir)
|
||||
|
|
@ -9110,7 +9109,6 @@ int main(int argc, char **argv)
|
|||
(void *) &opt_connect_timeout);
|
||||
if (opt_compress)
|
||||
mysql_options(con->mysql,MYSQL_OPT_COMPRESS,NullS);
|
||||
mysql_options(con->mysql, MYSQL_OPT_LOCAL_INFILE, 0);
|
||||
mysql_options(con->mysql, MYSQL_SET_CHARSET_NAME,
|
||||
charset_info->csname);
|
||||
if (opt_charsets_dir)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue