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
1a13dbff
Commit
1a13dbff
authored
Jan 05, 2023
by
Monty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-30327 Client crashes in print_last_query_cost
Fixed by calling init_pager() before tee_fprintf()
parent
8d4bccf3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
1 deletion
+16
-1
client/mysql.cc
client/mysql.cc
+3
-0
mysql-test/main/mysql.result
mysql-test/main/mysql.result
+3
-0
mysql-test/main/mysql.test
mysql-test/main/mysql.test
+10
-1
No files found.
client/mysql.cc
View file @
1a13dbff
...
...
@@ -4217,7 +4217,10 @@ static void print_last_query_cost()
cur
=
mysql_fetch_row
(
result
);
if
(
strtod
(
cur
[
1
],
&
end
)
!=
0.0
)
{
init_pager
();
tee_fprintf
(
PAGER
,
"%s: %s
\n\n
"
,
cur
[
0
],
cur
[
1
]);
}
end:
mysql_free_result
(
result
);
...
...
mysql-test/main/mysql.result
View file @
1a13dbff
...
...
@@ -637,3 +637,6 @@ drop table t1;
WARNING: option '--enable-cleartext-plugin' is obsolete.
1
1
#
# MDEV-30327 Client crashes in print_last_query_cost
#
mysql-test/main/mysql.test
View file @
1a13dbff
...
...
@@ -709,10 +709,19 @@ drop table t1;
--echo #
--exec
$MYSQL
-NHe "
select
1
as
a
"
#
# Test obsolete option --enable-cleartext-plugin
# This should proceed with a warning
#
--echo
--exec
$MYSQL
test --enable-cleartext-plugin -e "
select
1
"
--echo #
--echo # MDEV-30327 Client crashes in print_last_query_cost
--echo #
--disable_query_log
--disable_result_log
--exec
$MYSQL
--show-query-costs --port=
$MASTER_MYPORT
-e "
show
tables
in
mysql
like
'foo'
"
--enable_result_log
--enable_query_log
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