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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
1d09675c
Commit
1d09675c
authored
Feb 26, 2003
by
Sinisa@sinisa.nasamreza.org
Browse files
Options
Browse Files
Download
Plain Diff
Merge sinisa@
work.mysql.com://home/bk/mysql-4.0
into sinisa.nasamreza.org:/mnt/work/mysql-4.0
parents
045ac4b8
571fc250
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
sql/sql_load.cc
sql/sql_load.cc
+9
-2
No files found.
sql/sql_load.cc
View file @
1d09675c
...
@@ -90,6 +90,13 @@ int mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list,
...
@@ -90,6 +90,13 @@ int mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list,
bool
is_fifo
=
0
;
bool
is_fifo
=
0
;
LOAD_FILE_INFO
lf_info
;
LOAD_FILE_INFO
lf_info
;
char
*
db
=
table_list
->
db
?
table_list
->
db
:
thd
->
db
;
char
*
db
=
table_list
->
db
?
table_list
->
db
:
thd
->
db
;
char
*
tdb
=
thd
->
db
?
thd
->
db
:
db
;
/*
'tdb' can be NULL only if both table_list->db and thd->db are NULL
'db' itself can be NULL. but in that case it will generate
an error earlier open_ltable()).
*/
bool
transactional_table
,
log_delayed
;
bool
transactional_table
,
log_delayed
;
DBUG_ENTER
(
"mysql_load"
);
DBUG_ENTER
(
"mysql_load"
);
...
@@ -168,10 +175,10 @@ int mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list,
...
@@ -168,10 +175,10 @@ int mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list,
ex
->
file_name
+=
dirname_length
(
ex
->
file_name
);
ex
->
file_name
+=
dirname_length
(
ex
->
file_name
);
#endif
#endif
if
(
!
dirname_length
(
ex
->
file_name
)
&&
if
(
!
dirname_length
(
ex
->
file_name
)
&&
strlen
(
ex
->
file_name
)
+
strlen
(
mysql_data_home
)
+
strlen
(
t
hd
->
db
)
+
3
<
strlen
(
ex
->
file_name
)
+
strlen
(
mysql_data_home
)
+
strlen
(
tdb
)
+
3
<
FN_REFLEN
)
FN_REFLEN
)
{
{
(
void
)
sprintf
(
name
,
"%s/%s/%s"
,
mysql_data_home
,
t
hd
->
db
,
ex
->
file_name
);
(
void
)
sprintf
(
name
,
"%s/%s/%s"
,
mysql_data_home
,
tdb
,
ex
->
file_name
);
unpack_filename
(
name
,
name
);
/* Convert to system format */
unpack_filename
(
name
,
name
);
/* Convert to system format */
}
}
else
else
...
...
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