Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
fb44f7ce
Commit
fb44f7ce
authored
Feb 13, 2002
by
monty@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for LOAD DATA LOCAL INFILE patch
parent
f13a4518
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
libmysql/libmysql.c
libmysql/libmysql.c
+2
-2
sql/mysqld.cc
sql/mysqld.cc
+2
-2
No files found.
libmysql/libmysql.c
View file @
fb44f7ce
...
@@ -2294,9 +2294,9 @@ mysql_options(MYSQL *mysql,enum mysql_option option, const char *arg)
...
@@ -2294,9 +2294,9 @@ mysql_options(MYSQL *mysql,enum mysql_option option, const char *arg)
break
;
break
;
case
MYSQL_OPT_LOCAL_INFILE
:
/* Allow LOAD DATA LOCAL ?*/
case
MYSQL_OPT_LOCAL_INFILE
:
/* Allow LOAD DATA LOCAL ?*/
if
(
!
arg
||
test
(
*
(
uint
*
)
arg
))
if
(
!
arg
||
test
(
*
(
uint
*
)
arg
))
mysql
->
client_flag
|=
CLIENT_LOCAL_FILES
;
mysql
->
options
.
client_flag
|=
CLIENT_LOCAL_FILES
;
else
else
mysql
->
client_flag
&=
~
CLIENT_LOCAL_FILES
;
mysql
->
options
.
client_flag
&=
~
CLIENT_LOCAL_FILES
;
break
;
break
;
case
MYSQL_INIT_COMMAND
:
case
MYSQL_INIT_COMMAND
:
my_free
(
mysql
->
options
.
init_command
,
MYF
(
MY_ALLOW_ZERO_PTR
));
my_free
(
mysql
->
options
.
init_command
,
MYF
(
MY_ALLOW_ZERO_PTR
));
...
...
sql/mysqld.cc
View file @
fb44f7ce
...
@@ -287,7 +287,7 @@ ulong bytes_sent = 0L, bytes_received = 0L;
...
@@ -287,7 +287,7 @@ ulong bytes_sent = 0L, bytes_received = 0L;
bool
opt_endinfo
,
using_udf_functions
,
low_priority_updates
,
locked_in_memory
;
bool
opt_endinfo
,
using_udf_functions
,
low_priority_updates
,
locked_in_memory
;
bool
opt_using_transactions
,
using_update_log
,
opt_warnings
=
0
;
bool
opt_using_transactions
,
using_update_log
,
opt_warnings
=
0
;
bool
opt_local_infile
;
bool
opt_local_infile
=
1
;
bool
volatile
abort_loop
,
select_thread_in_use
,
grant_option
;
bool
volatile
abort_loop
,
select_thread_in_use
,
grant_option
;
bool
volatile
ready_to_exit
,
shutdown_in_progress
;
bool
volatile
ready_to_exit
,
shutdown_in_progress
;
ulong
refresh_version
=
1L
,
flush_version
=
1L
;
/* Increments on each reload */
ulong
refresh_version
=
1L
,
flush_version
=
1L
;
/* Increments on each reload */
...
@@ -3472,7 +3472,7 @@ static void get_options(int argc,char **argv)
...
@@ -3472,7 +3472,7 @@ static void get_options(int argc,char **argv)
mysql_port
=
(
unsigned
int
)
atoi
(
optarg
);
mysql_port
=
(
unsigned
int
)
atoi
(
optarg
);
break
;
break
;
case
OPT_LOCAL_INFILE
:
case
OPT_LOCAL_INFILE
:
opt_local_infile
=
test
(
optarg
||
atoi
(
optarg
)
!=
0
);
opt_local_infile
=
test
(
!
optarg
||
atoi
(
optarg
)
!=
0
);
break
;
break
;
case
OPT_SLAVE_SKIP_ERRORS
:
case
OPT_SLAVE_SKIP_ERRORS
:
init_slave_skip_errors
(
optarg
);
init_slave_skip_errors
(
optarg
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment