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
1eb58821
Commit
1eb58821
authored
Apr 30, 2004
by
sergefp@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More small WL#1622 fixes: Allocate name of Prepared Statement on PS's mem_root.
parent
9a4acccd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
sql/sql_prepare.cc
sql/sql_prepare.cc
+2
-4
No files found.
sql/sql_prepare.cc
View file @
1eb58821
...
...
@@ -1463,8 +1463,8 @@ int mysql_stmt_prepare(THD *thd, char *packet, uint packet_length,
if
(
name
)
{
stmt
->
name
.
length
=
name
->
length
;
if
(
!
(
stmt
->
name
.
str
=
m
y_memdup
((
byte
*
)
name
->
str
,
name
->
length
,
MYF
(
MY_WME
)
)))
if
(
!
(
stmt
->
name
.
str
=
m
emdup_root
(
&
stmt
->
mem_root
,
(
byte
*
)
name
->
str
,
name
->
length
)))
{
delete
stmt
;
send_error
(
thd
,
ER_OUT_OF_RESOURCES
);
...
...
@@ -1874,8 +1874,6 @@ Prepared_statement::Prepared_statement(THD *thd_arg)
Prepared_statement
::~
Prepared_statement
()
{
free_items
(
free_list
);
if
(
name
.
str
)
my_free
(
name
.
str
,
MYF
(
0
));
}
...
...
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