mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
e16081e1ac
This adds a TIME_MS column to SHOW FULL PROCESSLIST and INFORMATION_SCHEMA.PROCESSLIST that works like the TIME column, but in units of milliseconds with microsecond precision. Note that this also changes behaviour of the existing TIME column. In the MySQL server, the TIME column changes when a thread sets @TIMESTAMP. This is contrary to documentation and also potentially confusing, so could in any case be considered a bug. With this patch, to ensure consistency between TIME and TIME_MS, setting @TIMESTAMP has no effect on either value. Add a test case for the TIME and TIME_MS columns. Update existing test cases for changed behaviour. Author: Percona Signed-off-by: Kristian Nielsen <knielsen@knielsen-hq.org> mysql-test/r/create.result: Result file update. mysql-test/r/information_schema.result: Add test case. Result file update (changed behaviour). mysql-test/t/information_schema.test: Add test case. Adjust test case for changed behaviour. mysql-test/t/not_embedded_server.test: Update (commented-out) test case for newly added column. sql/sql_show.cc: Merge Percona microsec_process patch into MariaDB.
45 lines
1.4 KiB
Text
45 lines
1.4 KiB
Text
#
|
|
# Here we collect tests that doesn't work with the embedded server
|
|
#
|
|
|
|
-- source include/not_embedded.inc
|
|
|
|
#
|
|
# Produce output
|
|
#
|
|
|
|
select 1;
|
|
|
|
# The following fails sporadically because 'check-testcase' runs
|
|
# queries before this test and there is no way to guarantee that any
|
|
# previous process finishes. The purpose of the test is not clearly
|
|
# stated, there is no reference to any bug report, and "select from
|
|
# I_S from prepared statement" doesn't look like something that's
|
|
# really imporant to test. I'm commenting out this for now. If
|
|
# anyone wants to keep this, please fix the race and motivate why we
|
|
# need to test this. If you see this comment and it is after mid-2009
|
|
# or so, feel free to remove this test from the file. /Sven
|
|
#
|
|
#
|
|
## Show full process list with prepare
|
|
## To not show other connections, this must be the first test and we must
|
|
## have a server restart before this one
|
|
##
|
|
## We don't have any 4.1 tests as we use I_S to query the PROCESSLIST to
|
|
## exclude system threads that may/may not be active in the server
|
|
## (namely the ndb injector thread)
|
|
##
|
|
## End of 4.1 tests
|
|
#
|
|
#prepare stmt1 from ' SELECT * FROM INFORMATION_SCHEMA.PROCESSLIST WHERE COMMAND!=\'Daemon\' ';
|
|
#--replace_column 1 number 6 time 3 localhost 9 time_ms
|
|
#execute stmt1;
|
|
#deallocate prepare stmt1;
|
|
|
|
#
|
|
# Bug#43835: SHOW VARIABLES does not include 0 for slave_skip_errors
|
|
#
|
|
|
|
SHOW VARIABLES like 'slave_skip_errors';
|
|
|
|
# End of 5.1 tests
|