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
1111a8d6
Commit
1111a8d6
authored
Jun 30, 2002
by
monty@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug in binary log when using LOAD DATA INFILE without active database.
parent
9b42b0a7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
+13
-11
Docs/manual.texi
Docs/manual.texi
+4
-1
sql/log_event.h
sql/log_event.h
+9
-10
No files found.
Docs/manual.texi
View file @
1111a8d6
...
...
@@ -46927,7 +46927,10 @@ not yet 100% confident in this code.
@node News-3.23.52, News-3.23.51, News-3.23.x, News-3.23.x
@appendixsubsec Changes in release 3.23.52
@itemize @bullet
@code
@item
Fixed bug when logging @code{LOAD DATA INFILE} to binary log with no
active database.
@item
Fixed a bug in range optimiser (causing crashes).
@item
Fixed possible problem in replication when doing @code{DROP DATABASE} on a
sql/log_event.h
View file @
1111a8d6
...
...
@@ -234,8 +234,8 @@ public:
List
<
Item
>&
fields_arg
,
enum
enum_duplicates
handle_dup
)
:
Log_event
(
thd
->
start_time
),
data_buf
(
0
),
thread_id
(
thd
->
thread_id
),
num_fields
(
0
),
fields
(
0
),
field_lens
(
0
),
field_block_len
(
0
),
table_name
(
table_name_arg
),
db
(
db_arg
),
table_name
(
table_name_arg
?
table_name_arg
:
""
),
db
(
db_arg
?
db_arg
:
""
),
fname
(
ex
->
file_name
),
thd
(
thd
)
{
...
...
@@ -243,8 +243,8 @@ public:
time
(
&
end_time
);
exec_time
=
(
ulong
)
(
end_time
-
thd
->
start_time
);
valid_exec_time
=
1
;
db_len
=
(
db
)
?
(
uint32
)
strlen
(
db
)
:
0
;
table_name_len
=
(
table_name
)
?
(
uint32
)
strlen
(
table_name
)
:
0
;
db_len
=
(
uint32
)
strlen
(
db
)
;
table_name_len
=
(
uint32
)
strlen
(
table_name
)
;
fname_len
=
(
fname
)
?
(
uint
)
strlen
(
fname
)
:
0
;
sql_ex
.
field_term
=
(
*
ex
->
field_term
)[
0
];
sql_ex
.
enclosed
=
(
*
ex
->
enclosed
)[
0
];
...
...
@@ -259,8 +259,7 @@ public:
sql_ex
.
empty_flags
=
0
;
switch
(
handle_dup
)
{
switch
(
handle_dup
)
{
case
DUP_IGNORE
:
sql_ex
.
opt_flags
|=
IGNORE_FLAG
;
break
;
case
DUP_REPLACE
:
sql_ex
.
opt_flags
|=
REPLACE_FLAG
;
break
;
case
DUP_ERROR
:
break
;
...
...
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