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
e7bec655
Commit
e7bec655
authored
Jun 15, 2009
by
Georgi Kodinov
Browse files
Options
Browse Files
Download
Plain Diff
automerge
parents
04483bcd
37a5f2d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
mysql-test/r/log_tables_debug.result
mysql-test/r/log_tables_debug.result
+2
-1
mysql-test/t/log_tables_debug.test
mysql-test/t/log_tables_debug.test
+10
-3
No files found.
mysql-test/r/log_tables_debug.result
View file @
e7bec655
...
...
@@ -9,9 +9,10 @@ SET @old_slow_query_log_file= @@global.slow_query_log_file;
SET @@global.general_log = ON;
SET @@global.general_log_file = 'bug45387_general.log';
SET SESSION debug='+d,reset_log_last_time';
FLUSH LOGS;
SET @@global.general_log = @old_general_log;
SET @@global.general_log_file = @old_general_log_file;
SET SESSION debug='';
SET SESSION debug='
-d,reset_log_last_time
';
Bug#45387: ID match.
End of 5.1 tests
#
...
...
mysql-test/t/log_tables_debug.test
View file @
e7bec655
...
...
@@ -32,11 +32,12 @@ SET @@global.general_log_file = 'bug45387_general.log';
SET
SESSION
debug
=
'+d,reset_log_last_time'
;
let
CONN_ID
=
`SELECT CONNECTION_ID()`
;
FLUSH
LOGS
;
# reset log settings
SET
@@
global
.
general_log
=
@
old_general_log
;
SET
@@
global
.
general_log_file
=
@
old_general_log_file
;
SET
SESSION
debug
=
''
;
SET
SESSION
debug
=
'
-d,reset_log_last_time
'
;
perl
;
# get the relevant info from the surrounding perl invocation
...
...
@@ -52,14 +53,20 @@ perl;
break
;
}
}
close
(
FILE
);
# print the result
if
(
$found
==
$conn_id
)
{
print
"Bug#45387: ID match.
\n
"
;
}
else
{
print
"Bug#45387: Expected ID '
$conn_id
', found '
$found
' in log file.
\n
"
;
}
print
"Contents of log file:
\n
"
;
seek
(
FILE
,
0
,
0
);
while
(
$line
=
<
FILE
>
)
{
print
$line
;
}
}
close
(
FILE
);
EOF
--
remove_file
$MYSQLD_DATADIR
/
bug45387_general
.
log
...
...
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