[MDEV-23040] sql_mode mixture: a table with TRIM() in DEFAULT refuses to INSERT Created: 2020-06-29 Updated: 2020-06-29 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Data types, Parser |
| Affects Version/s: | 10.3, 10.4, 10.5 |
| Fix Version/s: | 10.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | Compatibility | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
I create a table and insert one row:
Looks good so far. Now I change sql_mode and insert one more row:
Still looks good so far. Now I force the table to reopen and insert one more row:
Ooops.
The default implementation of TRIM() was replaced to Oracle-compatible implementation. Looks wrong. |
| Comments |
| Comment by Alexander Barkov [ 2020-06-29 ] | ||||||||||||||||
|
The same problem is repeatable with virtual columns:
Notice, TRIM() was replaced to TRIM_ORACLE(). |