MDEV-7431 main.log_tables fails sporadically in buildbot

Structure of the table created by the test to archive mysql.slow_log
data didn't match the structure of mysql.slow_log. The failure only 
appeared if the slow_log was not empty, which was very rare. 
  
Updated the structure of the table.
This commit is contained in:
Elena Stepanova 2015-01-15 20:15:50 +04:00
parent df2db86341
commit 26a8a95cb3
2 changed files with 4 additions and 2 deletions

View file

@ -536,7 +536,8 @@ CREATE TABLE `db_17876.slow_log_data` (
`last_insert_id` int(11) default NULL, `last_insert_id` int(11) default NULL,
`insert_id` int(11) default NULL, `insert_id` int(11) default NULL,
`server_id` int(11) default NULL, `server_id` int(11) default NULL,
`sql_text` mediumtext `sql_text` mediumtext,
`thread_id` bigint(21) unsigned default NULL
); );
CREATE TABLE `db_17876.general_log_data` ( CREATE TABLE `db_17876.general_log_data` (
`event_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `event_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,

View file

@ -727,7 +727,8 @@ CREATE TABLE `db_17876.slow_log_data` (
`last_insert_id` int(11) default NULL, `last_insert_id` int(11) default NULL,
`insert_id` int(11) default NULL, `insert_id` int(11) default NULL,
`server_id` int(11) default NULL, `server_id` int(11) default NULL,
`sql_text` mediumtext `sql_text` mediumtext,
`thread_id` bigint(21) unsigned default NULL
); );
CREATE TABLE `db_17876.general_log_data` ( CREATE TABLE `db_17876.general_log_data` (