[MDEV-9428] NO_AUTO_VALUE_ON_ZERO is ignored when a trigger before insert is defined Created: 2016-01-18 Updated: 2016-06-28 Resolved: 2016-06-28 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Triggers |
| Affects Version/s: | 10.1.10 |
| Fix Version/s: | 10.1.11, 10.1.15 |
| Type: | Bug | Priority: | Major |
| Reporter: | Rich Theobald | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | regression | ||
| Environment: |
Ubuntu 14.04 |
||
| Issue Links: |
|
||||||||
| Sprint: | 10.1.11 | ||||||||
| Description |
|
|
| Comments |
| Comment by Elena Stepanova [ 2016-01-18 ] | ||||||||||
|
Thanks for the report and the test case. The problem was introduced by the following revision:
| ||||||||||
| Comment by Andrew January [ 2016-05-11 ] | ||||||||||
|
The fix does not work correctly. It only works if you don't specify the column names (e.g. "insert t1 values (0)") If you specify the column names (e.g. "insert t1(ID) values (0)") as in the original ticket, the commit 5da7c34 does not fix it. | ||||||||||
| Comment by Sergei Golubchik [ 2016-05-11 ] | ||||||||||
|
You're right. Sorry for this. Will be fixed in the next release. |