Skip to content

Commit 1c73a7a

Browse files
committed
Merge branch 'mysql-5.5-cluster-7.2' into mysql-5.6-cluster-7.3
2 parents 22b4536 + c4cd913 commit 1c73a7a

File tree

3 files changed

+23
-21
lines changed

3 files changed

+23
-21
lines changed

mysql-test/suite/ndb/r/ndb_native_default_support.result

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ d Double NULL AT=FIXED ST=MEMORY DEFAULT 8.800000
152152
d2 Double NOT NULL AT=FIXED ST=MEMORY
153153
ch Char(19;latin1_swedish_ci) NULL AT=FIXED ST=MEMORY DEFAULT "aaa"
154154
vch Varchar(19;latin1_swedish_ci) NULL AT=SHORT_VAR ST=MEMORY DEFAULT "bbb"
155-
b Binary(19) NULL AT=FIXED ST=MEMORY DEFAULT 0x636363
155+
b Binary(19) NULL AT=FIXED ST=MEMORY DEFAULT 0x63636300000000000000000000000000000000
156156
vb Varbinary(19) NULL AT=SHORT_VAR ST=MEMORY DEFAULT 0x646464
157157
blob1 Blob(256,2000,0) NULL AT=MEDIUM_VAR ST=MEMORY BV=2 BT=NDB$BLOB_XX_9
158158
text1 Text(256,2000,0;latin1_swedish_ci) NULL AT=MEDIUM_VAR ST=MEMORY BV=2 BT=NDB$BLOB_XX_10
@@ -379,7 +379,7 @@ d Double NULL AT=FIXED ST=MEMORY DEFAULT 8.800000
379379
d2 Double NOT NULL AT=FIXED ST=MEMORY
380380
ch Char(19;latin1_swedish_ci) NULL AT=FIXED ST=MEMORY DEFAULT "aaa"
381381
vch Varchar(19;latin1_swedish_ci) NULL AT=SHORT_VAR ST=MEMORY DEFAULT "bbb"
382-
b Binary(19) NULL AT=FIXED ST=MEMORY DEFAULT 0x636363
382+
b Binary(19) NULL AT=FIXED ST=MEMORY DEFAULT 0x63636300000000000000000000000000000000
383383
vb Varbinary(19) NULL AT=SHORT_VAR ST=MEMORY DEFAULT 0x646464
384384
blob1 Blob(256,2000,0) NULL AT=MEDIUM_VAR ST=MEMORY BV=2 BT=NDB$BLOB_XX_9
385385
text1 Text(256,2000,0;latin1_swedish_ci) NULL AT=MEDIUM_VAR ST=MEMORY BV=2 BT=NDB$BLOB_XX_10
@@ -1445,7 +1445,7 @@ f Float NOT NULL AT=FIXED ST=MEMORY DEFAULT 6.600000
14451445
d Double NULL AT=FIXED ST=MEMORY DEFAULT 8.800000
14461446
d2 Double NOT NULL AT=FIXED ST=MEMORY
14471447
ch Char(19;latin1_swedish_ci) NULL AT=FIXED ST=MEMORY DEFAULT "aaaAAA"
1448-
b Binary(19) NULL AT=FIXED ST=MEMORY DEFAULT 0x636363
1448+
b Binary(19) NULL AT=FIXED ST=MEMORY DEFAULT 0x63636300000000000000000000000000000000
14491449
vb Varbinary(19) NULL AT=SHORT_VAR ST=MEMORY DEFAULT 0x646464
14501450
blob1 Blob(256,2000,0) NULL AT=MEDIUM_VAR ST=MEMORY BV=2 BT=NDB$BLOB_XX_8
14511451
text1 Text(256,2000,0;latin1_swedish_ci) NULL AT=MEDIUM_VAR ST=MEMORY BV=2 BT=NDB$BLOB_XX_9

mysql-test/suite/ndb/r/ndb_restore_print.result

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,11 @@ hex(h3) NULL
227227
hex(i1) NULL
228228
hex(i2) NULL
229229
hex(i3) NULL
230-
1;0x1;0x17;0x789A;0x789ABCDE;0xFEDC0001;127;255;32767;65535;2147483647;4294967295;9223372036854775807;18446744073709551615;1;12345678901234567890123456789012;123456789;1;12345678901234567890123456789012;123456789;0x12;0x123456789ABCDEF0;0x012345;0x12;0x123456789ABCDEF0;0x00123450
231-
2;0x0;0x0;0x0;0x0;0x0;-128;0;-32768;0;-2147483648;0;-9223372036854775808;0;;;;;;;0x0;0x0;0x0;0x0;0x0;0x0
230+
1;0x1;0x17;0x789A;0x789ABCDE;0xFEDC0001;127;255;32767;65535;2147483647;4294967295;9223372036854775807;18446744073709551615;1;12345678901234567890123456789012;123456789;1;12345678901234567890123456789012;123456789;0x12;0x123456789ABCDEF0;0x012345000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;0x12;0x123456789ABCDEF0;0x00123450
231+
2;0x0;0x0;0x0;0x0;0x0;-128;0;-32768;0;-2147483648;0;-9223372036854775808;0;;;;;;;0x00;0x0000000000000000;0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;0x00;0x00;0x00
232232
3;\N;\N;\N;\N;\N;\N;\N;\N;\N;\N;\N;\N;\N;\N;\N;\N;\N;\N;\N;\N;\N;\N;\N;\N;\N
233-
1,0x1,0x17,0x789A,0x789ABCDE,0xFEDC0001,127,255,32767,65535,2147483647,4294967295,9223372036854775807,18446744073709551615,'1','12345678901234567890123456789012','123456789','1','12345678901234567890123456789012','123456789',0x12,0x123456789ABCDEF0,0x012345,0x12,0x123456789ABCDEF0,0x00123450
234-
2,0x0,0x0,0x0,0x0,0x0,-128,0,-32768,0,-2147483648,0,-9223372036854775808,0,'','','','','','',0x0,0x0,0x0,0x0,0x0,0x0
233+
1,0x1,0x17,0x789A,0x789ABCDE,0xFEDC0001,127,255,32767,65535,2147483647,4294967295,9223372036854775807,18446744073709551615,'1','12345678901234567890123456789012','123456789','1','12345678901234567890123456789012','123456789',0x12,0x123456789ABCDEF0,0x012345000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0x12,0x123456789ABCDEF0,0x00123450
234+
2,0x0,0x0,0x0,0x0,0x0,-128,0,-32768,0,-2147483648,0,-9223372036854775808,0,'','','','','','',0x00,0x0000000000000000,0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0x00,0x00,0x00
235235
3,,,,,,,,,,,,,,,,,,,,,,,,,
236236
drop table t1;
237237
create table t1
@@ -254,11 +254,11 @@ create table t4 (pk int key, a int) engine ndb;
254254
insert into t2 values (1,11),(2,12),(3,13),(4,14),(5,15);
255255
insert into t3 values (1,21),(2,22),(3,23),(4,24),(5,25);
256256
insert into t4 values (1,31),(2,32),(3,33),(4,34),(5,35);
257-
'1' '1' '12345678901234567890123456789012' '123456789' '1' '12345678901234567890123456789012' '123456789' '0x20' '0x123456789ABCDEF020' '0x012345000020' '0x1200000020' '0x123456789ABCDEF000000020' '0x00123450000020'
257+
'1' '1' '12345678901234567890123456789012' '123456789' '1' '12345678901234567890123456789012' '123456789' '0x20' '0x123456789ABCDEF020' '0x012345000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' '0x1200000020' '0x123456789ABCDEF000000020' '0x00123450000020'
258258

259259
t1
260260
--
261-
1 1 12345678901234567890123456789012 123456789 1 12345678901234567890123456789012 123456789 0x20 0x123456789ABCDEF020 0x012345000020 0x1200000020 0x123456789ABCDEF000000020 0x00123450000020
261+
1 1 12345678901234567890123456789012 123456789 1 12345678901234567890123456789012 123456789 0x20 0x123456789ABCDEF020 0x012345000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0x1200000020 0x123456789ABCDEF000000020 0x00123450000020
262262

263263
t2
264264
--

storage/ndb/src/ndbapi/NdbDictionary.cpp

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
2+
Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
33
44
This program is free software; you can redistribute it and/or modify
55
it under the terms of the GNU General Public License as published by
@@ -3242,17 +3242,7 @@ pretty_print_string(NdbOut& out,
32423242
{
32433243
const unsigned char* ref = (const unsigned char*)aref;
32443244
int i, len, printable= 1;
3245-
// trailing zeroes are not printed
3246-
for (i=sz-1; i >= 0; i--)
3247-
if (ref[i] == 0) sz--;
3248-
else break;
3249-
if (!is_binary)
3250-
{
3251-
// trailing spaces are not printed
3252-
for (i=sz-1; i >= 0; i--)
3253-
if (ref[i] == 32) sz--;
3254-
else break;
3255-
}
3245+
32563246
if (is_binary && f.hex_format)
32573247
{
32583248
if (sz == 0)
@@ -3265,6 +3255,18 @@ pretty_print_string(NdbOut& out,
32653255
out.print("%02X", (int)ref[len]);
32663256
return;
32673257
}
3258+
3259+
// trailing zeroes are not printed
3260+
for (i=sz-1; i >= 0; i--)
3261+
if (ref[i] == 0) sz--;
3262+
else break;
3263+
if (!is_binary)
3264+
{
3265+
// trailing spaces are not printed
3266+
for (i=sz-1; i >= 0; i--)
3267+
if (ref[i] == 32) sz--;
3268+
else break;
3269+
}
32683270
if (sz == 0) return; // empty
32693271

32703272
// NOTE! This for loop both checks printable and counts length

0 commit comments

Comments
 (0)