diff options
author | Magnus Svensson <msvensson@mysql.com> | 2009-01-24 12:09:36 +0100 |
---|---|---|
committer | Magnus Svensson <msvensson@mysql.com> | 2009-01-24 12:09:36 +0100 |
commit | a3185ce723892d8d98562a6f364cbd2c07740272 (patch) | |
tree | f63191f4fe1baf480cfd50ead8af0890df5b2f39 /mysql-test/include/check-warnings.test | |
parent | a7e67cba9a8955b52ec8cf319a7af7554b13beef (diff) | |
download | mariadb-git-a3185ce723892d8d98562a6f364cbd2c07740272.tar.gz |
mtr.pl v2
- Add name of error log file to the erro log table to get better
erorr message when warning is found
Diffstat (limited to 'mysql-test/include/check-warnings.test')
-rw-r--r-- | mysql-test/include/check-warnings.test | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/mysql-test/include/check-warnings.test b/mysql-test/include/check-warnings.test index ef0e92df29c..8b0d2803081 100644 --- a/mysql-test/include/check-warnings.test +++ b/mysql-test/include/check-warnings.test @@ -14,6 +14,7 @@ use mtr; create temporary table error_log ( row int auto_increment primary key, + file_name varchar(255), line varchar(1024) null ) engine=myisam; @@ -22,7 +23,8 @@ let $log_error= query_get_value(show variables like 'log_error', Value, 1); # Try to load the error log into the temporary table --error 0,1085 -eval load data infile '$log_error' into table error_log (line); +eval load data infile '$log_error' into table error_log (line) + set file_name='$log_error'; if ($mysql_errno) { # The error log was not world readable, this is normally @@ -31,13 +33,16 @@ if ($mysql_errno) # a new error log file that is not world readable. # chmod the error log file and try to open it again chmod 0644 $log_error; - eval load data infile '$log_error' into table error_log (line); + eval load data infile '$log_error' into table error_log (line) + set file_name='$log_error'; # Also load the .err-old file where there might be # additional warnings + let $old_log_error = $log_error-old; chmod 0644 $old_log_error; - eval load data infile '$old_log_error' into table error_log (line); + eval load data infile '$old_log_error' into table error_log (line) + set file_name='$log_error'; } # Call check_warnings to filter out any warning in |