Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
dc009949
Commit
dc009949
authored
Jan 24, 2009
by
Magnus Svensson
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
7b93194c
a3185ce7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
mysql-test/include/check-warnings.test
mysql-test/include/check-warnings.test
+8
-3
mysql-test/include/mtr_warnings.sql
mysql-test/include/mtr_warnings.sql
+2
-3
No files found.
mysql-test/include/check-warnings.test
View file @
dc009949
...
...
@@ -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
...
...
mysql-test/include/mtr_warnings.sql
View file @
dc009949
...
...
@@ -233,7 +233,7 @@ BEGIN
DELETE
FROM
error_log
WHERE
row
<
@
max_row
;
CREATE
TEMPORARY
TABLE
suspect_lines
ENGINE
=
MyISAM
AS
SELECT
DISTINCT
el
.
line
,
0
as
"suppressed"
SELECT
DISTINCT
el
.
file_name
,
el
.
line
,
0
as
"suppressed"
FROM
error_log
el
,
suspicious_patterns
ep
WHERE
el
.
line
REGEXP
ep
.
pattern
;
...
...
@@ -251,8 +251,7 @@ BEGIN
WHERE
suppressed
=
0
;
IF
@
num_warnings
>
0
THEN
SELECT
@
log_error
;
SELECT
line
as
log_error
SELECT
file_name
,
line
as
log_error
FROM
suspect_lines
WHERE
suppressed
=
0
;
--SELECT * FROM test_suppressions;
-- Return 2 -> check failed
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment