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
a0c440b2
Commit
a0c440b2
authored
Nov 26, 2009
by
Bo Thorsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply the strict aliasing patch from
http://lists.mysql.com/commits/89843
parent
069eec35
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sql/log_event.cc
sql/log_event.cc
+4
-4
No files found.
sql/log_event.cc
View file @
a0c440b2
...
...
@@ -2133,8 +2133,8 @@ void Query_log_event::pack_info(Protocol *protocol)
/**
Utility function for the next method (Query_log_event::write()) .
*/
static
void
write_str_with_code_and_len
(
char
**
dst
,
const
char
*
src
,
int
len
,
uint
code
)
static
void
write_str_with_code_and_len
(
u
char
**
dst
,
const
char
*
src
,
u
int
len
,
uint
code
)
{
/*
only 1 byte to store the length of catalog, so it should not
...
...
@@ -2229,7 +2229,7 @@ bool Query_log_event::write(IO_CACHE* file)
}
if
(
catalog_len
)
// i.e. this var is inited (false for 4.0 events)
{
write_str_with_code_and_len
(
(
char
**
)(
&
start
)
,
write_str_with_code_and_len
(
&
start
,
catalog
,
catalog_len
,
Q_CATALOG_NZ_CODE
);
/*
In 5.0.x where x<4 masters we used to store the end zero here. This was
...
...
@@ -2267,7 +2267,7 @@ bool Query_log_event::write(IO_CACHE* file)
{
/* In the TZ sys table, column Name is of length 64 so this should be ok */
DBUG_ASSERT
(
time_zone_len
<=
MAX_TIME_ZONE_NAME_LENGTH
);
write_str_with_code_and_len
(
(
char
**
)(
&
start
)
,
write_str_with_code_and_len
(
&
start
,
time_zone_str
,
time_zone_len
,
Q_TIME_ZONE_CODE
);
}
if
(
lc_time_names_number
)
...
...
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