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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
1767390b
Commit
1767390b
authored
Apr 01, 2023
by
Oleksandr Byelkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix passing correct length of string in command print.
parent
3b642440
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
sql/sql_select.cc
sql/sql_select.cc
+9
-9
No files found.
sql/sql_select.cc
View file @
1767390b
...
@@ -27990,19 +27990,19 @@ enum explainable_cmd_type
...
@@ -27990,19 +27990,19 @@ enum explainable_cmd_type
};
};
static
static
const
char
*
const
explainable_cmd_name
[]
=
const
LEX_CSTRING
explainable_cmd_name
[]
=
{
{
"select "
,
{
STRING_WITH_LEN
(
"select "
)}
,
"insert "
,
{
STRING_WITH_LEN
(
"insert "
)}
,
"replace "
,
{
STRING_WITH_LEN
(
"replace "
)}
,
"update "
,
{
STRING_WITH_LEN
(
"update "
)}
,
"delete "
,
{
STRING_WITH_LEN
(
"delete "
)}
,
};
};
static
static
c
har
const
*
get_explainable_cmd_name
(
enum
explainable_cmd_type
cmd
)
c
onst
LEX_CSTRING
*
get_explainable_cmd_name
(
enum
explainable_cmd_type
cmd
)
{
{
return
explainable_cmd_name
[
cmd
]
;
return
explainable_cmd_name
+
cmd
;
}
}
static
static
...
@@ -28304,7 +28304,7 @@ void st_select_lex::print(THD *thd, String *str, enum_query_type query_type)
...
@@ -28304,7 +28304,7 @@ void st_select_lex::print(THD *thd, String *str, enum_query_type query_type)
query_type
);
query_type
);
}
}
if
(
sel_type
==
UPDATE_CMD
||
sel_type
==
DELETE_CMD
)
if
(
sel_type
==
UPDATE_CMD
||
sel_type
==
DELETE_CMD
)
str
->
append
(
STRING_WITH_LEN
(
get_explainable_cmd_name
(
sel_type
)
));
str
->
append
(
get_explainable_cmd_name
(
sel_type
));
if
(
sel_type
==
DELETE_CMD
)
if
(
sel_type
==
DELETE_CMD
)
{
{
str
->
append
(
STRING_WITH_LEN
(
" from "
));
str
->
append
(
STRING_WITH_LEN
(
" from "
));
...
...
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