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
37568891
Commit
37568891
authored
May 06, 2011
by
Luis Soares
Browse files
Options
Browse Files
Download
Plain Diff
BUG#12354268
Automerge from mysql-5.1 into mysql-5.5.
parents
445e52a5
ac00a021
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
1 deletion
+41
-1
client/mysqlbinlog.cc
client/mysqlbinlog.cc
+2
-1
mysql-test/r/mysqlbinlog_base64.result
mysql-test/r/mysqlbinlog_base64.result
+10
-0
mysql-test/t/mysqlbinlog_base64.test
mysql-test/t/mysqlbinlog_base64.test
+29
-0
No files found.
client/mysqlbinlog.cc
View file @
37568891
...
@@ -966,7 +966,8 @@ Exit_status process_event(PRINT_EVENT_INFO *print_event_info, Log_event *ev,
...
@@ -966,7 +966,8 @@ Exit_status process_event(PRINT_EVENT_INFO *print_event_info, Log_event *ev,
passed --short-form, because --short-form disables printing
passed --short-form, because --short-form disables printing
row events.
row events.
*/
*/
if
(
!
print_event_info
->
printed_fd_event
&&
!
short_form
)
if
(
!
print_event_info
->
printed_fd_event
&&
!
short_form
&&
opt_base64_output_mode
!=
BASE64_OUTPUT_DECODE_ROWS
)
{
{
const
char
*
type_str
=
ev
->
get_type_str
();
const
char
*
type_str
=
ev
->
get_type_str
();
if
(
opt_base64_output_mode
==
BASE64_OUTPUT_NEVER
)
if
(
opt_base64_output_mode
==
BASE64_OUTPUT_NEVER
)
...
...
mysql-test/r/mysqlbinlog_base64.result
View file @
37568891
...
@@ -109,3 +109,13 @@ count(*)
...
@@ -109,3 +109,13 @@ count(*)
35840
35840
drop table t1;
drop table t1;
drop table t2;
drop table t2;
RESET MASTER;
USE test;
SET @old_binlog_format= @@binlog_format;
SET SESSION binlog_format=ROW;
CREATE TABLE t1(c1 INT);
INSERT INTO t1 VALUES (1);
FLUSH LOGS;
DROP TABLE t1;
SET SESSION binlog_format= @old_binlog_format;
RESET MASTER;
mysql-test/t/mysqlbinlog_base64.test
View file @
37568891
...
@@ -71,3 +71,32 @@ select count(*) from t2;
...
@@ -71,3 +71,32 @@ select count(*) from t2;
--
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
mysqlbinlog_base64
.
sql
--
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
mysqlbinlog_base64
.
sql
drop
table
t1
;
drop
table
t1
;
drop
table
t2
;
drop
table
t2
;
#
# BUG#12354268
#
# This test verifies that using --start-position with DECODE-ROWS
# does not make mysqlbinlog to output an error stating that it
# does not contain any FD event.
#
RESET
MASTER
;
USE
test
;
SET
@
old_binlog_format
=
@@
binlog_format
;
SET
SESSION
binlog_format
=
ROW
;
CREATE
TABLE
t1
(
c1
INT
);
--
let
$master_binlog
=
query_get_value
(
SHOW
MASTER
STATUS
,
File
,
1
)
--
let
$master_pos
=
query_get_value
(
SHOW
MASTER
STATUS
,
Position
,
1
)
--
let
$MYSQLD_DATADIR
=
`SELECT @@datadir`
INSERT
INTO
t1
VALUES
(
1
);
FLUSH
LOGS
;
--
disable_result_log
--
exec
$MYSQL_BINLOG
--
base64
-
output
=
DECODE
-
ROWS
--
start
-
position
=
$master_pos
-
v
$MYSQLD_DATADIR
/
$master_binlog
--
enable_result_log
DROP
TABLE
t1
;
SET
SESSION
binlog_format
=
@
old_binlog_format
;
RESET
MASTER
;
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