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
f98f46c4
Commit
f98f46c4
authored
Aug 24, 2005
by
lars@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#12532: Fixes after review
parent
d8df7659
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
sql/log_event.cc
sql/log_event.cc
+6
-7
sql/sql_parse.cc
sql/sql_parse.cc
+2
-1
No files found.
sql/log_event.cc
View file @
f98f46c4
...
...
@@ -1330,13 +1330,12 @@ Query_log_event::Query_log_event(const char* buf, uint event_len,
if
(
!
(
start
=
data_buf
=
(
char
*
)
my_malloc
(
catalog_len
+
1
+
time_zone_len
+
1
+
data_len
+
1
+
#ifndef MYSQL_CLIENT
#ifdef HAVE_QUERY_CACHE
QUERY_CACHE_FLAGS_SIZE
+
#endif
data_len
+
1
#if !defined(MYSQL_CLIENT) && defined(HAVE_QUERY_CACHE)
+
QUERY_CACHE_FLAGS_SIZE
+
db_len
+
1
#endif
db_len
+
1
,
MYF
(
MY_WME
))))
,
MYF
(
MY_WME
))))
DBUG_VOID_RETURN
;
if
(
catalog_len
)
// If catalog is given
{
...
...
sql/sql_parse.cc
View file @
f98f46c4
...
...
@@ -1218,7 +1218,8 @@ extern "C" pthread_handler_decl(handle_bootstrap,arg)
length
--
;
buff
[
length
]
=
0
;
thd
->
query_length
=
length
;
thd
->
query
=
thd
->
memdup_w_gap
(
buff
,
length
+
1
,
thd
->
db_length
+
1
);
thd
->
query
=
thd
->
memdup_w_gap
(
buff
,
length
+
1
,
thd
->
db_length
+
1
+
QUERY_CACHE_FLAGS_SIZE
);
thd
->
query
[
length
]
=
'\0'
;
/*
We don't need to obtain LOCK_thread_count here because in bootstrap
...
...
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