Commit 4458a6a
committed
Bug#36725332 BLOB_INLINE_SIZE is silently ignored for TINYBLOB
Problem:
A NDB table, with a SQL TINYBLOB column configured with the
BLOB_INLINE_SIZE NDB column option, would (silently) default to the
hardcoded 256 byte value whichever the new size provided. Therefore,
it would not only mislead the user but also not provide the
configurability of BLOB inline size.
Analysis:
On creation of the NDB column from the NDB cluster plugin, the
TINYBLOB case would never read the BLOB_INLINE_SIZE option, therefore
setting the 256 default value. MySQL server already gives the 255 byte
value to be the maximum for a TINYBLOB, thus no over the maximum
writes would be available. However, the BLOB_INLINE_SIZE option also
allows the maximum stored value to be less so that more columns can be
fitted into each row (max of 30k bytes for NDB rows).
Solution:
Do not support BLOB_INLINE_SIZE on SQL TINYBLOB columns
altogether. The reasons are many:
1) TINYBLOB is internally limited to 255
bytes on MySQL server field side (1 byte of packlength)
2) Same behavior can be achieved with VARBINARY with less hassle
3) Gets no benefit on the properties of NDB, such as having
distributed parts of rows partitioned across the cluster.
NDB plugin code now pushes a warning saying it is defaulting to base 256 bytes.
Change-Id: Iab6a3009e5f5e407ef3bef18caf31ed6ed2810a31 parent 63d9403 commit 4458a6a
File tree
3 files changed
+93
-12
lines changed- mysql-test/suite/ndb
- r
- t
- storage/ndb/plugin
3 files changed
+93
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
256 | 271 | | |
257 | 272 | | |
258 | 273 | | |
| |||
399 | 414 | | |
400 | 415 | | |
401 | 416 | | |
402 | | - | |
| 417 | + | |
403 | 418 | | |
404 | 419 | | |
405 | 420 | | |
| |||
425 | 440 | | |
426 | 441 | | |
427 | 442 | | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
428 | 467 | | |
429 | 468 | | |
430 | 469 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
188 | 199 | | |
189 | 200 | | |
190 | 201 | | |
| |||
291 | 302 | | |
292 | 303 | | |
293 | 304 | | |
294 | | - | |
| 305 | + | |
295 | 306 | | |
296 | 307 | | |
297 | 308 | | |
| |||
306 | 317 | | |
307 | 318 | | |
308 | 319 | | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
309 | 340 | | |
310 | 341 | | |
311 | 342 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8170 | 8170 | | |
8171 | 8171 | | |
8172 | 8172 | | |
| 8173 | + | |
| 8174 | + | |
| 8175 | + | |
| 8176 | + | |
| 8177 | + | |
| 8178 | + | |
| 8179 | + | |
| 8180 | + | |
| 8181 | + | |
8173 | 8182 | | |
8174 | 8183 | | |
8175 | 8184 | | |
| |||
8364 | 8373 | | |
8365 | 8374 | | |
8366 | 8375 | | |
8367 | | - | |
8368 | 8376 | | |
8369 | 8377 | | |
8370 | 8378 | | |
| 8379 | + | |
8371 | 8380 | | |
8372 | 8381 | | |
8373 | 8382 | | |
| |||
8391 | 8400 | | |
8392 | 8401 | | |
8393 | 8402 | | |
8394 | | - | |
8395 | | - | |
8396 | | - | |
8397 | 8403 | | |
8398 | 8404 | | |
| 8405 | + | |
| 8406 | + | |
8399 | 8407 | | |
| 8408 | + | |
| 8409 | + | |
8400 | 8410 | | |
8401 | 8411 | | |
8402 | 8412 | | |
| |||
8411 | 8421 | | |
8412 | 8422 | | |
8413 | 8423 | | |
8414 | | - | |
8415 | | - | |
8416 | | - | |
8417 | 8424 | | |
8418 | 8425 | | |
| 8426 | + | |
| 8427 | + | |
8419 | 8428 | | |
| 8429 | + | |
| 8430 | + | |
8420 | 8431 | | |
8421 | 8432 | | |
8422 | 8433 | | |
| |||
8426 | 8437 | | |
8427 | 8438 | | |
8428 | 8439 | | |
8429 | | - | |
| 8440 | + | |
8430 | 8441 | | |
8431 | 8442 | | |
8432 | | - | |
| 8443 | + | |
8433 | 8444 | | |
8434 | 8445 | | |
8435 | 8446 | | |
| |||
8448 | 8459 | | |
8449 | 8460 | | |
8450 | 8461 | | |
8451 | | - | |
8452 | 8462 | | |
8453 | 8463 | | |
| 8464 | + | |
8454 | 8465 | | |
8455 | 8466 | | |
8456 | 8467 | | |
| |||
0 commit comments