[MDEV-24461] Virtual column expression error with binlog_format=ROW Created: 2020-12-21 Updated: 2023-04-27 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Virtual Columns |
| Affects Version/s: | 10.5.6, 10.3, 10.4, 10.5 |
| Fix Version/s: | 10.4, 10.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Anders Karlsson | Assignee: | Nikita Malyavin |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Linux Centos 7.9 |
||
| Description |
|
When a virtual column expression returns an error based on the value, this seems to be checked at different times. When binlog_format is ROW and the binlog is on it looks like it is checked at INSERT time, but when the binlog is off or binlog_format is not ROW, then it isn't checked until SELECT, and then you get a warning instead of an error. This is best illustrated with an example:
Then we try with binlog on. Same result:
Then we set binlog_format to ROW:
|