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
ea7df08c
Commit
ea7df08c
authored
Aug 01, 2005
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix crash in 'SHOW CREATE FUNCTION' introduced by Monty's last
cleanup.
parent
5d3b4067
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
sql/sp_head.cc
sql/sp_head.cc
+1
-3
No files found.
sql/sp_head.cc
View file @
ea7df08c
...
...
@@ -1320,7 +1320,6 @@ sp_head::show_create_function(THD *thd)
String
buffer
(
buff
,
sizeof
(
buff
),
system_charset_info
);
int
res
;
List
<
Item
>
field_list
;
sys_var
*
sql_mode_var
;
byte
*
sql_mode_str
;
ulong
sql_mode_len
;
bool
full_access
;
...
...
@@ -1337,8 +1336,7 @@ sp_head::show_create_function(THD *thd)
m_sql_mode
,
&
sql_mode_len
);
field_list
.
push_back
(
new
Item_empty_string
(
"Function"
,
NAME_LEN
));
if
(
sql_mode_var
)
field_list
.
push_back
(
new
Item_empty_string
(
"sql_mode"
,
sql_mode_len
));
field_list
.
push_back
(
new
Item_empty_string
(
"sql_mode"
,
sql_mode_len
));
field_list
.
push_back
(
new
Item_empty_string
(
"Create Function"
,
max
(
buffer
.
length
(),
1024
)));
if
(
protocol
->
send_fields
(
&
field_list
,
...
...
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