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
5c95c631
Commit
5c95c631
authored
Apr 05, 2007
by
tsmith@siva.hindu.god
Browse files
Options
Browse Files
Download
Plain Diff
Merge tsmith@bk-internal.mysql.com:/home/bk/mysql-5.1-runtime
into siva.hindu.god:/home/tsmith/m/bk/maint/51
parents
bc5462fb
fe6835c2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
33 deletions
+41
-33
mysql-test/r/information_schema.result
mysql-test/r/information_schema.result
+17
-15
mysql-test/t/information_schema.test
mysql-test/t/information_schema.test
+24
-18
No files found.
mysql-test/r/information_schema.result
View file @
5c95c631
...
@@ -1409,31 +1409,33 @@ user db
...
@@ -1409,31 +1409,33 @@ user db
user3148 test
user3148 test
drop user user3148@localhost;
drop user user3148@localhost;
DROP TABLE IF EXISTS thread_status;
DROP TABLE IF EXISTS thread_status;
CREATE TABLE thread_status (variable_name VARCHAR(64),
DROP TABLE IF EXISTS server_status;
variable_value DECIMAL(22,7));
DROP EVENT IF EXISTS event_status;
CREATE TABLE server_status (variable_name VARCHAR(64),
SET GLOBAL event_scheduler=1;
variable_value DECIMAL(22,7));
CREATE EVENT event_status
DROP EVENT IF EXISTS log_status;
CREATE EVENT log_status
ON SCHEDULE AT NOW()
ON SCHEDULE AT NOW()
ON COMPLETION PRESERVE
ON COMPLETION
NOT
PRESERVE
DO
DO
BEGIN
BEGIN
INSERT INTO thread_status SELECT variable_name, variable_value FROM
CREATE TABLE thread_status
information_schema.session_status;
SELECT variable_name, variable_value
INSERT INTO server_status SELECT variable_name, variable_value FROM
FROM information_schema.session_status
information_schema.global_status;
WHERE variable_name LIKE 'SSL_ACCEPTS' OR
variable_name LIKE 'SSL_CALLBACK_CACHE_HITS';
CREATE TABLE server_status
SELECT variable_name
FROM information_schema.global_status
WHERE variable_name LIKE 'ABORTED_CONNECTS' OR
variable_name LIKE 'BINLOG_CACHE_DISK_USE';
END$$
END$$
SET GLOBAL event_scheduler=1;
SELECT variable_name, variable_value FROM thread_status;
SELECT * FROM thread_status WHERE variable_name LIKE 'SSL%' LIMIT 1,2;
variable_name variable_value
variable_name variable_value
SSL_ACCEPTS 0.0000000
SSL_ACCEPTS 0.0000000
SSL_CALLBACK_CACHE_HITS 0.0000000
SSL_CALLBACK_CACHE_HITS 0.0000000
SELECT variable_name FROM server_status
LIMIT 1,2
;
SELECT variable_name FROM server_status;
variable_name
variable_name
ABORTED_CONNECTS
ABORTED_CONNECTS
BINLOG_CACHE_DISK_USE
BINLOG_CACHE_DISK_USE
DROP EVENT log_status;
DROP TABLE thread_status;
DROP TABLE thread_status;
DROP TABLE server_status;
DROP TABLE server_status;
SET GLOBAL event_scheduler=0;
SET GLOBAL event_scheduler=0;
...
...
mysql-test/t/information_schema.test
View file @
5c95c631
...
@@ -1049,36 +1049,42 @@ drop user user3148@localhost;
...
@@ -1049,36 +1049,42 @@ drop user user3148@localhost;
#
#
--
disable_warnings
--
disable_warnings
DROP
TABLE
IF
EXISTS
thread_status
;
DROP
TABLE
IF
EXISTS
thread_status
;
CREATE
TABLE
thread_status
(
variable_name
VARCHAR
(
64
),
DROP
TABLE
IF
EXISTS
server_status
;
variable_value
DECIMAL
(
22
,
7
));
DROP
EVENT
IF
EXISTS
event_status
;
CREATE
TABLE
server_status
(
variable_name
VARCHAR
(
64
),
variable_value
DECIMAL
(
22
,
7
));
DROP
EVENT
IF
EXISTS
log_status
;
--
enable_warnings
--
enable_warnings
SET
GLOBAL
event_scheduler
=
1
;
DELIMITER
$$
;
DELIMITER
$$
;
CREATE
EVENT
log
_status
CREATE
EVENT
event
_status
ON
SCHEDULE
AT
NOW
()
ON
SCHEDULE
AT
NOW
()
ON
COMPLETION
PRESERVE
ON
COMPLETION
NOT
PRESERVE
DO
DO
BEGIN
BEGIN
INSERT
INTO
thread_status
SELECT
variable_name
,
variable_value
FROM
CREATE
TABLE
thread_status
information_schema
.
session_status
;
SELECT
variable_name
,
variable_value
INSERT
INTO
server_status
SELECT
variable_name
,
variable_value
FROM
FROM
information_schema
.
session_status
information_schema
.
global_status
;
WHERE
variable_name
LIKE
'SSL_ACCEPTS'
OR
END
$$
variable_name
LIKE
'SSL_CALLBACK_CACHE_HITS'
;
CREATE
TABLE
server_status
SELECT
variable_name
FROM
information_schema
.
global_status
WHERE
variable_name
LIKE
'ABORTED_CONNECTS'
OR
variable_name
LIKE
'BINLOG_CACHE_DISK_USE'
;
END
$$
DELIMITER
;
$$
DELIMITER
;
$$
SET
GLOBAL
event_scheduler
=
1
;
let
$wait_condition
=
select
count
(
*
)
=
0
from
information_schema
.
events
where
event_name
=
'event_status'
;
let
$wait_condition
=
select
count
(
variable_name
)
!=
0
from
server_status
;
let
$wait_timeout
=
30
;
let
$wait_timeout
=
30
;
--
source
include
/
wait_condition
.
inc
--
source
include
/
wait_condition
.
inc
SELECT
*
FROM
thread_status
WHERE
variable_name
LIKE
'SSL%'
LIMIT
1
,
2
;
SELECT
variable_name
FROM
server_status
LIMIT
1
,
2
;
DROP
EVENT
log_status
;
SELECT
variable_name
,
variable_value
FROM
thread_status
;
SELECT
variable_name
FROM
server_status
;
DROP
TABLE
thread_status
;
DROP
TABLE
thread_status
;
DROP
TABLE
server_status
;
DROP
TABLE
server_status
;
SET
GLOBAL
event_scheduler
=
0
;
SET
GLOBAL
event_scheduler
=
0
;
...
...
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