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
46089cfd
Commit
46089cfd
authored
Nov 09, 2004
by
monty@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simple optimization to avoid a malloc for each query
parent
d2d7533e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
sql/sql_lex.cc
sql/sql_lex.cc
+2
-5
sql/sql_lex.h
sql/sql_lex.h
+2
-1
No files found.
sql/sql_lex.cc
View file @
46089cfd
...
...
@@ -178,11 +178,8 @@ void lex_start(THD *thd, uchar *buf,uint length)
lex
->
trg_table
=
NULL
;
lex
->
proc_list
.
first
=
0
;
extern
byte
*
sp_lex_spfuns_key
(
const
byte
*
ptr
,
uint
*
plen
,
my_bool
first
);
hash_free
(
&
lex
->
spfuns
);
hash_init
(
&
lex
->
spfuns
,
system_charset_info
,
0
,
0
,
0
,
sp_lex_spfuns_key
,
0
,
0
);
if
(
lex
->
spfuns
.
records
)
hash_reset
(
&
lex
->
spfuns
);
}
void
lex_end
(
LEX
*
lex
)
...
...
sql/sql_lex.h
View file @
46089cfd
...
...
@@ -758,7 +758,8 @@ typedef struct st_lex
st_lex
()
:
result
(
0
)
{
bzero
((
char
*
)
&
spfuns
,
sizeof
(
spfuns
));
extern
byte
*
sp_lex_spfuns_key
(
const
byte
*
ptr
,
uint
*
plen
,
my_bool
first
);
hash_init
(
&
spfuns
,
system_charset_info
,
0
,
0
,
0
,
sp_lex_spfuns_key
,
0
,
0
);
}
~
st_lex
()
...
...
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