Skip to content

Commit 29ac245

Browse files
committed
MDEV-8473: mysqlbinlog -v does not properly decode DECIMAL values in an RBR log
Backport of upstream patch. revno: 5696
1 parent 102a85f commit 29ac245

File tree

4 files changed

+79
-84
lines changed

4 files changed

+79
-84
lines changed

mysql-test/suite/binlog/r/binlog_mysqlbinlog_row.result

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1409,7 +1409,7 @@ BEGIN
14091409
#010909 4:46:40 server id 1 end_log_pos # Write_rows: table id # flags: STMT_END_F
14101410
### INSERT INTO `test`.`t1`
14111411
### SET
1412-
### @1=000000124.450000000 /* DECIMAL(10,5) meta=2565 nullable=1 is_null=0 */
1412+
### @1=124.45000 /* DECIMAL(10,5) meta=2565 nullable=1 is_null=0 */
14131413
# at #
14141414
#010909 4:46:40 server id 1 end_log_pos # Query thread_id=# exec_time=# error_code=0
14151415
SET TIMESTAMP=1000000000/*!*/;
@@ -1426,7 +1426,7 @@ BEGIN
14261426
#010909 4:46:40 server id 1 end_log_pos # Write_rows: table id # flags: STMT_END_F
14271427
### INSERT INTO `test`.`t1`
14281428
### SET
1429-
### @1=-000000543.210000000 /* DECIMAL(10,5) meta=2565 nullable=1 is_null=0 */
1429+
### @1=-543.21000 /* DECIMAL(10,5) meta=2565 nullable=1 is_null=0 */
14301430
# at #
14311431
#010909 4:46:40 server id 1 end_log_pos # Query thread_id=# exec_time=# error_code=0
14321432
SET TIMESTAMP=1000000000/*!*/;
@@ -1443,7 +1443,7 @@ BEGIN
14431443
#010909 4:46:40 server id 1 end_log_pos # Delete_rows: table id # flags: STMT_END_F
14441444
### DELETE FROM `test`.`t1`
14451445
### WHERE
1446-
### @1=000000124.450000000 /* DECIMAL(10,5) meta=2565 nullable=1 is_null=0 */
1446+
### @1=124.45000 /* DECIMAL(10,5) meta=2565 nullable=1 is_null=0 */
14471447
# at #
14481448
#010909 4:46:40 server id 1 end_log_pos # Query thread_id=# exec_time=# error_code=0
14491449
SET TIMESTAMP=1000000000/*!*/;

mysql-test/suite/binlog/r/binlog_mysqlbinlog_row_innodb.result

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2390,9 +2390,9 @@ BEGIN
23902390
### @22=-1.797... /* DOUBLE meta=8 nullable=1 is_null=0 */
23912391
### @23=2.225... /* DOUBLE meta=8 nullable=1 is_null=0 */
23922392
### @24=0 /* DOUBLE meta=8 nullable=1 is_null=0 */
2393-
### @25=-000000009.999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
2394-
### @26=000000000 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
2395-
### @27=000000000 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
2393+
### @25=-9999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
2394+
### @26=0 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
2395+
### @27=0 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
23962396
### @28='1000:01:01' /* DATE meta=0 nullable=1 is_null=0 */
23972397
### @29=1000-01-01 00:00:00 /* DATETIME meta=0 nullable=1 is_null=0 */
23982398
### @30=75601 /* TIMESTAMP meta=0 nullable=0 is_null=0 */
@@ -2483,9 +2483,9 @@ BEGIN
24832483
### @22=1.797... /* DOUBLE meta=8 nullable=1 is_null=0 */
24842484
### @23=1.797... /* DOUBLE meta=8 nullable=1 is_null=0 */
24852485
### @24=1.797... /* DOUBLE meta=8 nullable=1 is_null=0 */
2486-
### @25=000000009.999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
2487-
### @26=000000009.999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
2488-
### @27=000000009.999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
2486+
### @25=9999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
2487+
### @26=9999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
2488+
### @27=9999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
24892489
### @28='9999:12:31' /* DATE meta=0 nullable=1 is_null=0 */
24902490
### @29=9999-12-31 23:59:59 /* DATETIME meta=0 nullable=1 is_null=0 */
24912491
### @30=2146522447 /* TIMESTAMP meta=0 nullable=0 is_null=0 */
@@ -2659,9 +2659,9 @@ BEGIN
26592659
### @22=-2.225... /* DOUBLE meta=8 nullable=1 is_null=0 */
26602660
### @23=2.225... /* DOUBLE meta=8 nullable=1 is_null=0 */
26612661
### @24=1 /* DOUBLE meta=8 nullable=1 is_null=0 */
2662-
### @25=-000000009.999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
2663-
### @26=000000009.999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
2664-
### @27=000000001 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
2662+
### @25=-9999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
2663+
### @26=9999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
2664+
### @27=1 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
26652665
### @28='2008:08:04' /* DATE meta=0 nullable=1 is_null=0 */
26662666
### @29=2008-08-04 16:18:06 /* DATETIME meta=0 nullable=1 is_null=0 */
26672667
### @30=1217855904 /* TIMESTAMP meta=0 nullable=0 is_null=0 */
@@ -2752,9 +2752,9 @@ BEGIN
27522752
### @22=-1.797... /* DOUBLE meta=8 nullable=1 is_null=0 */
27532753
### @23=2.225... /* DOUBLE meta=8 nullable=1 is_null=0 */
27542754
### @24=0 /* DOUBLE meta=8 nullable=1 is_null=0 */
2755-
### @25=-000000009.999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
2756-
### @26=000000000 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
2757-
### @27=000000000 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
2755+
### @25=-9999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
2756+
### @26=0 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
2757+
### @27=0 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
27582758
### @28='1000:01:01' /* DATE meta=0 nullable=1 is_null=0 */
27592759
### @29=1000-01-01 00:00:00 /* DATETIME meta=0 nullable=1 is_null=0 */
27602760
### @30=75601 /* TIMESTAMP meta=0 nullable=0 is_null=0 */
@@ -2832,9 +2832,9 @@ BEGIN
28322832
### @22=1.797... /* DOUBLE meta=8 nullable=1 is_null=0 */
28332833
### @23=1.797... /* DOUBLE meta=8 nullable=1 is_null=0 */
28342834
### @24=1.797... /* DOUBLE meta=8 nullable=1 is_null=0 */
2835-
### @25=000000009.999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
2836-
### @26=000000009.999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
2837-
### @27=000000009.999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
2835+
### @25=9999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
2836+
### @26=9999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
2837+
### @27=9999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
28382838
### @28='9999:12:31' /* DATE meta=0 nullable=1 is_null=0 */
28392839
### @29=9999-12-31 23:59:59 /* DATETIME meta=0 nullable=1 is_null=0 */
28402840
### @30=2146522447 /* TIMESTAMP meta=0 nullable=0 is_null=0 */
@@ -2925,9 +2925,9 @@ BEGIN
29252925
### @22=1.797... /* DOUBLE meta=8 nullable=1 is_null=0 */
29262926
### @23=1.797... /* DOUBLE meta=8 nullable=1 is_null=0 */
29272927
### @24=1.797... /* DOUBLE meta=8 nullable=1 is_null=0 */
2928-
### @25=000000009.999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
2929-
### @26=000000009.999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
2930-
### @27=000000009.999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
2928+
### @25=9999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
2929+
### @26=9999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
2930+
### @27=9999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
29312931
### @28='9999:12:31' /* DATE meta=0 nullable=1 is_null=0 */
29322932
### @29=9999-12-31 23:59:59 /* DATETIME meta=0 nullable=1 is_null=0 */
29332933
### @30=2146522447 /* TIMESTAMP meta=0 nullable=0 is_null=0 */
@@ -3005,9 +3005,9 @@ BEGIN
30053005
### @22=-1.797... /* DOUBLE meta=8 nullable=1 is_null=0 */
30063006
### @23=2.225... /* DOUBLE meta=8 nullable=1 is_null=0 */
30073007
### @24=0 /* DOUBLE meta=8 nullable=1 is_null=0 */
3008-
### @25=-000000009.999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
3009-
### @26=000000000 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
3010-
### @27=000000000 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
3008+
### @25=-9999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
3009+
### @26=0 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
3010+
### @27=0 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
30113011
### @28='1000:01:01' /* DATE meta=0 nullable=1 is_null=0 */
30123012
### @29=1000-01-01 00:00:00 /* DATETIME meta=0 nullable=1 is_null=0 */
30133013
### @30=75601 /* TIMESTAMP meta=0 nullable=0 is_null=0 */
@@ -3178,9 +3178,9 @@ BEGIN
31783178
### @22=-2.225... /* DOUBLE meta=8 nullable=1 is_null=0 */
31793179
### @23=2.225... /* DOUBLE meta=8 nullable=1 is_null=0 */
31803180
### @24=1 /* DOUBLE meta=8 nullable=1 is_null=0 */
3181-
### @25=-000000009.999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
3182-
### @26=000000009.999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
3183-
### @27=000000001 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
3181+
### @25=-9999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
3182+
### @26=9999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
3183+
### @27=1 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
31843184
### @28='2008:08:04' /* DATE meta=0 nullable=1 is_null=0 */
31853185
### @29=2008-08-04 16:18:06 /* DATETIME meta=0 nullable=1 is_null=0 */
31863186
### @30=1217855904 /* TIMESTAMP meta=0 nullable=0 is_null=0 */
@@ -3271,9 +3271,9 @@ BEGIN
32713271
### @22=-2.225... /* DOUBLE meta=8 nullable=1 is_null=0 */
32723272
### @23=2.225... /* DOUBLE meta=8 nullable=1 is_null=0 */
32733273
### @24=1 /* DOUBLE meta=8 nullable=1 is_null=0 */
3274-
### @25=-000000009.999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
3275-
### @26=000000009.999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
3276-
### @27=000000001 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
3274+
### @25=-9999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
3275+
### @26=9999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
3276+
### @27=1 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
32773277
### @28='2008:08:04' /* DATE meta=0 nullable=1 is_null=0 */
32783278
### @29=2008-08-04 16:18:06 /* DATETIME meta=0 nullable=1 is_null=0 */
32793279
### @30=1217855904 /* TIMESTAMP meta=0 nullable=0 is_null=0 */
@@ -3444,9 +3444,9 @@ BEGIN
34443444
### @22=1.797... /* DOUBLE meta=8 nullable=1 is_null=0 */
34453445
### @23=1.797... /* DOUBLE meta=8 nullable=1 is_null=0 */
34463446
### @24=1.797... /* DOUBLE meta=8 nullable=1 is_null=0 */
3447-
### @25=000000009.999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
3448-
### @26=000000009.999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
3449-
### @27=000000009.999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
3447+
### @25=9999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
3448+
### @26=9999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
3449+
### @27=9999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
34503450
### @28='9999:12:31' /* DATE meta=0 nullable=1 is_null=0 */
34513451
### @29=9999-12-31 23:59:59 /* DATETIME meta=0 nullable=1 is_null=0 */
34523452
### @30=2146522447 /* TIMESTAMP meta=0 nullable=0 is_null=0 */
@@ -3537,9 +3537,9 @@ BEGIN
35373537
### @22=-1.797... /* DOUBLE meta=8 nullable=1 is_null=0 */
35383538
### @23=2.225... /* DOUBLE meta=8 nullable=1 is_null=0 */
35393539
### @24=0 /* DOUBLE meta=8 nullable=1 is_null=0 */
3540-
### @25=-000000009.999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
3541-
### @26=000000000 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
3542-
### @27=000000000 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
3540+
### @25=-9999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
3541+
### @26=0 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
3542+
### @27=0 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
35433543
### @28='1000:01:01' /* DATE meta=0 nullable=1 is_null=0 */
35443544
### @29=1000-01-01 00:00:00 /* DATETIME meta=0 nullable=1 is_null=0 */
35453545
### @30=75601 /* TIMESTAMP meta=0 nullable=0 is_null=0 */
@@ -3630,9 +3630,9 @@ BEGIN
36303630
### @22=-2.225... /* DOUBLE meta=8 nullable=1 is_null=0 */
36313631
### @23=2.225... /* DOUBLE meta=8 nullable=1 is_null=0 */
36323632
### @24=1 /* DOUBLE meta=8 nullable=1 is_null=0 */
3633-
### @25=-000000009.999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
3634-
### @26=000000009.999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
3635-
### @27=000000001 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
3633+
### @25=-9999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
3634+
### @26=9999999999 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
3635+
### @27=1 /* DECIMAL(10,0) meta=2560 nullable=1 is_null=0 */
36363636
### @28='2008:08:04' /* DATE meta=0 nullable=1 is_null=0 */
36373637
### @29=2008-08-04 16:18:06 /* DATETIME meta=0 nullable=1 is_null=0 */
36383638
### @30=1217855904 /* TIMESTAMP meta=0 nullable=0 is_null=0 */

0 commit comments

Comments
 (0)