1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-05 13:16:09 +03:00

MDEV-7389 Request: log warnings into SQL_ERROR_LOG

Changes:
- Audit_null records and displays warning count
- sql_error_log prints warnings

Reviewer: Alexey Botchkov <holyfoot@askmonty.org>
This commit is contained in:
Monty
2023-05-23 15:32:50 +03:00
parent 7c9f275ee4
commit e9fe39d566
9 changed files with 71 additions and 19 deletions

View File

@@ -1,4 +1,3 @@
--source include/not_embedded.inc
if (!$SQL_ERRLOG_SO) {
@@ -66,10 +65,16 @@ DELIMITER ;|
CALL e1();
DROP PROCEDURE e1;
CREATE TABLE t1 (a char(4));
set sql_mode="";
insert into t1 value("12345");
set sql_mode=default;
drop table t1;
uninstall plugin SQL_ERROR_LOG;
let $MYSQLD_DATADIR= `SELECT @@datadir`;
# replace the timestamp and the hostname with constant values
--replace_regex /[1-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] [ 0-9][0-9]:[0-9][0-9]:[0-9][0-9] [^E]*/TIME HOSTNAME /
--replace_regex /[1-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] [ 0-9][0-9]:[0-9][0-9]:[0-9][0-9] [^EW]*/TIME HOSTNAME /
cat_file $MYSQLD_DATADIR/sql_errors.log;
remove_file $MYSQLD_DATADIR/sql_errors.log;