[MDEV-23802] Add a new command line option to mysqlbinlog, to choose between my_b_write_quoted() and pure HEX notation Created: 2020-09-24 Updated: 2023-12-11 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Replication |
| Fix Version/s: | 11.2 |
| Type: | Task | Priority: | Minor |
| Reporter: | Sujatha Sivakumar (Inactive) | Assignee: | Brandon Nesterenko |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Add a new command line option to mysqlbinlog, to choose between my_b_write_quoted() and pure HEX notation. Create a table which has fields of type BLOB or GEOMETRY. Have binary log format as 'row'. For example:
Try to print the binarylog by using "mysqlbinlog -v"
The BLOB field value gets printed in semi hex format. Hence when the above
Suggested fix by Bar is mentioned below: Make to row event decoder to print data in pure HEX format.
With the above the 'mysqlbinlog verbose query' can be given as input to mysql client. Add a new command line option to mysqlbinlog, to choose between `my_b_write_quoted() ` and pure HEX notation: 0xAABBCC. `my_b_write_quoted()` prints control character using escape sequences, and other characters - literally. This is not something the parser can understand. It's supposed to be read by a human. Add a new function, to print ALL characters using HEX notation. Both control and non-control. |
| Comments |
| Comment by Anel Husakovic [ 2023-12-11 ] | ||||||||||||||
|
I tried to recreate the problem on 11.4, but I don't see the semi-hex format with mariadb-binlog -v <binlogfile
|