[MDEV-15938] TINYTEXT CHARACTER SET utf8 COMPRESSED truncates data Created: 2018-04-20 Updated: 2018-04-30 Resolved: 2018-04-30 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Server |
| Affects Version/s: | 10.3 |
| Fix Version/s: | 10.3.7 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Sergey Vojtovich |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
I insert an latin1 string consisting of 250 ASCII characters in two TINYTEXT columns (compressed and non-compressed) with CHARACTER SET utf8. The compressed column truncates data. The non-compressed column writes the entire value, as expected:
Looks wrong. The expected behavior would be to write all 250 characters into both columns. |
| Comments |
| Comment by Alexander Barkov [ 2018-04-20 ] | ||||||||||||
|
The same problem is repeatable with utf16:
It should be repeatable if:
| ||||||||||||
| Comment by Sergey Vojtovich [ 2018-04-25 ] | ||||||||||||
|
bar, please review fix for this bug | ||||||||||||
| Comment by Alexander Barkov [ 2018-04-27 ] | ||||||||||||
|
svoj, the patch is fine.
Probably it's a good idea to make a new file ctype_utf16_compressed.test for this. |