[MDEV-31940] Warning not raised inside Trigger Created: 2023-08-17 Updated: 2023-11-28 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Triggers |
| Affects Version/s: | 10.4, 10.5, 10.6, 10.10, 10.11, 11.0, 11.1, 11.2, 11.0.3 |
| Fix Version/s: | 10.4, 10.5, 10.6, 10.11, 11.0, 11.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Georg Richter | Assignee: | Rucha Deodhar |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
This issue was found and reported by ndiamond on stackoverflow. According to the SQL Standard SQLSTATE codes beginning with 01 are treated as warnings instead of errors.
While the example above works as expected, the same SIGNAL inside a trigger has no effect: DDL:
Test:
|
| Comments |
| Comment by Elena Stepanova [ 2023-09-18 ] | ||||||||||||||
|
A somewhat simpler example:
|