[MDEV-11698] Old Bug possibly not fixed; BEFORE INSERT Trigger on NOT NULL Created: 2016-12-31 Updated: 2023-05-01 Resolved: 2017-01-17 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Triggers |
| Affects Version/s: | 10.1.10, 5.5, 10.0, 10.1, 10.1.19, 10.2 |
| Fix Version/s: | 10.1.21, 10.2.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Yurelle | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | upstream-fixed | ||
| Environment: |
XAMPP v7.0.13 (MariaDB v10.1.19) |
||
| Issue Links: |
|
||||||||||||
| Description |
|
I believe this old ticket is either still broken, or was perhaps broken again, recently by something else: I asked a question on StackExchange for some help to make sure that it wasn’t a configuration error on my part before bothering you guys, but I didn’t get any response. I apologize if this turns out to be a PEBKAC. The short of it is:
Result: I’ve tried doing several insert tests on the base table, and it looks like the trigger is just not firing at all. I searched around online for other people with this problem, but they all seemed to just be syntax errors. I don’t have much experience with this kind of “deep” SQL, but I think mine’s correct. I have tested on:
I have created a simple demonstration schema, and a SQL Fiddle:
Thanks, |
| Comments |
| Comment by Elena Stepanova [ 2017-01-03 ] | |||||||||||
|
Thanks for the report and test case.
| |||||||||||
| Comment by Sergei Golubchik [ 2017-01-16 ] | |||||||||||
|
This has nothing to do with | |||||||||||
| Comment by andreas eschbacher [ 2023-03-15 ] | |||||||||||
|
sorry it is not fixed, | |||||||||||
| Comment by Sergei Golubchik [ 2023-05-01 ] | |||||||||||
|
do you have a test case? |