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
91e5423c
Commit
91e5423c
authored
Jan 15, 2009
by
Alexander Nozdrin
Browse files
Options
Browse Files
Download
Plain Diff
Merge backport of patch for Bug#31222 from 5.0 to 5.1
parents
920021c9
9a6e05d8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
47 deletions
+30
-47
mysql-test/r/change_user.result
mysql-test/r/change_user.result
+7
-0
mysql-test/r/not_embedded_server.result
mysql-test/r/not_embedded_server.result
+0
-7
mysql-test/t/change_user.test
mysql-test/t/change_user.test
+23
-6
mysql-test/t/not_embedded_server.test
mysql-test/t/not_embedded_server.test
+0
-34
No files found.
mysql-test/r/change_user.result
View file @
91e5423c
...
...
@@ -44,3 +44,10 @@ IS_FREE_LOCK('bug31418')
SELECT IS_USED_LOCK('bug31418');
IS_USED_LOCK('bug31418')
NULL
FLUSH STATUS;
SHOW GLOBAL STATUS LIKE 'com_select';
Variable_name Value
Com_select 112
SHOW GLOBAL STATUS LIKE 'com_select';
Variable_name Value
Com_select 112
mysql-test/r/not_embedded_server.result
View file @
91e5423c
...
...
@@ -3,10 +3,3 @@ execute stmt1;
ID USER HOST DB COMMAND TIME STATE INFO
number root localhost test Query time executing SELECT * FROM INFORMATION_SCHEMA.PROCESSLIST WHERE COMMAND!='Daemon'
deallocate prepare stmt1;
FLUSH STATUS;
SHOW GLOBAL STATUS LIKE 'com_select';
Variable_name Value
Com_select 102
SHOW GLOBAL STATUS LIKE 'com_select';
Variable_name Value
Com_select 102
mysql-test/t/change_user.test
View file @
91e5423c
...
...
@@ -45,9 +45,26 @@ SELECT IS_USED_LOCK('bug31418');
# Bug#31222: com_% global status counters behave randomly with
# mysql_change_user.
#
# Moved to not_embedded_server.test due to Bug#34517: SHOW GLOBAL STATUS does
# not work properly in embedded server.
#
# TODO: move it back when Bug#34517 is fixed (don't forget to add
# --force-restart into change_user-master.opt).
#
FLUSH
STATUS
;
--
disable_result_log
--
disable_query_log
let
$i
=
100
;
while
(
$i
)
{
dec
$i
;
SELECT
1
;
}
--
enable_query_log
--
enable_result_log
SHOW
GLOBAL
STATUS
LIKE
'com_select'
;
--
change_user
SHOW
GLOBAL
STATUS
LIKE
'com_select'
;
mysql-test/t/not_embedded_server.test
View file @
91e5423c
...
...
@@ -20,38 +20,4 @@ prepare stmt1 from ' SELECT * FROM INFORMATION_SCHEMA.PROCESSLIST WHERE COMMAND!
execute
stmt1
;
deallocate
prepare
stmt1
;
#
# Bug#31222: com_% global status counters behave randomly with
# mysql_change_user.
#
# Moved from change_user.test due to Bug#34517: SHOW GLOBAL STATUS does not
# work properly in embedded server.
#
# TODO: move it back when Bug#34517 is fixed.
#
FLUSH
STATUS
;
--
disable_result_log
--
disable_query_log
let
$i
=
100
;
while
(
$i
)
{
dec
$i
;
SELECT
1
;
}
--
enable_query_log
--
enable_result_log
SHOW
GLOBAL
STATUS
LIKE
'com_select'
;
--
change_user
SHOW
GLOBAL
STATUS
LIKE
'com_select'
;
# End of 5.1 tests
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