[MCOL-4578] CHAR(2) NOT NULL: Empty string or SPACE(N) get converted to DEFAULT Created: 2021-03-04 Updated: 2023-09-22 Resolved: 2023-04-25 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | PrimProc |
| Affects Version/s: | 5.5.1, 5.6.1 |
| Fix Version/s: | 23.10.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Sergey Zefirov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | rm_invalid_data | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Epic Link: | ColumnStore Compatibility Improvements | ||||||||||||||||||||||||
| Sprint: | 2021-5, 2021-6 | ||||||||||||||||||||||||
| Description |
|
In all above cases, empty strings as well as strings consisting only of space characters were replaced to the DEFAULT value. Looks wrong. Strings consisting of only spaces should never be replaced to DEFAULT. CHAR values should be padded with spaces to their full length.
Also, inserting an empty string should:
|
| Comments |
| Comment by Daniel Lee (Inactive) [ 2023-04-25 ] |
|
Build verified: |