diff options
author | unknown <malff/marcsql@weblab.(none)> | 2007-10-11 17:55:18 -0600 |
---|---|---|
committer | unknown <malff/marcsql@weblab.(none)> | 2007-10-11 17:55:18 -0600 |
commit | 3df1613f2748f80a369969d5e5a7f55ccb203a19 (patch) | |
tree | b20f8c12d76bebb755561439798675b5fd58d11f /mysql-test/r/log_tables.result | |
parent | 11476cfc042a316399efbd59016a9898390f0f6b (diff) | |
download | mariadb-git-3df1613f2748f80a369969d5e5a7f55ccb203a19.tar.gz |
Bug#27858 (Failing to log to a log table doesn't log anything to error log)
Before this patch, failures to write to the log tables (mysql.slow_log
and mysql.general_log) were improperly printed (the time was printed twice),
or not printed at all.
With this patch, failures to write to the log tables is reported in the
error log, for all cases of failures.
mysql-test/r/log_tables.result:
Bug#27858 (Failing to log to a log table doesn't log anything to error log)
mysql-test/t/log_tables.test:
Bug#27858 (Failing to log to a log table doesn't log anything to error log)
sql/log.cc:
Bug#27858 (Failing to log to a log table doesn't log anything to error log)
Diffstat (limited to 'mysql-test/r/log_tables.result')
-rw-r--r-- | mysql-test/r/log_tables.result | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mysql-test/r/log_tables.result b/mysql-test/r/log_tables.result index 9e67d328849..be0555024fa 100644 --- a/mysql-test/r/log_tables.result +++ b/mysql-test/r/log_tables.result @@ -270,6 +270,10 @@ use mysql; lock tables general_log read local, help_category read local; ERROR HY000: You can't use locks with log tables. unlock tables; +drop table if exists mysql.renamed_general_log; +drop table if exists mysql.renamed_slow_log; +drop table if exists mysql.general_log_new; +drop table if exists mysql.slow_log_new; use mysql; RENAME TABLE general_log TO renamed_general_log; ERROR HY000: Cannot rename 'general_log'. When logging enabled, rename to/from log table must rename two tables: the log table to an archive table and another table back to 'general_log' |