[MDEV-8099] "WHERE OLD.col" does not work well in triggers Created: 2015-05-04 Updated: 2015-05-05 Resolved: 2015-05-05 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Triggers |
| Affects Version/s: | 5.5, 10.0, 10.1 |
| Fix Version/s: | 10.0.18 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | upstream | ||
| Description |
|
This script:
returns one row before UPDATE on t1, and returns empty set after UPDATE on t1.
Thus no rows should be deleted from t2. |
| Comments |
| Comment by Alexander Barkov [ 2015-05-04 ] |
|
mysql-5.5.31 is also affected. |
| Comment by Alexander Barkov [ 2015-05-05 ] |
|
Not a bug. OLD.a is actually 100, the value in table. |