Bug #86463 | Data checks are performed before `BEFORE INSERT` triggers | ||
---|---|---|---|
Submitted: | 25 May 2017 17:12 | Modified: | 26 Jun 2017 12:46 |
Reporter: | S. M. | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S3 (Non-critical) |
Version: | 5.7 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | triggers |
[25 May 2017 17:12]
S. M.
[13 Jun 2017 17:10]
MySQL Verification Team
Hi! This is expected behaviour. Entered temporal values are checked before the statement is executed. This is an extension of basic syntax check. This is basic data type check and is done before any statement is executed. If you think it should be documented, let us know.
[15 Jun 2017 7:35]
Saverio Miroddi
I think it should definitely be documented; although I understand the engineering logic, it's somewhat unexpected, so users should be warned.
[15 Jun 2017 14:28]
MySQL Verification Team
Hi Pippo, I agree with you that the order of processing should be better documented when it comes to the order of parsing, interpreting constants .... firing BEFORE triggers , etc ..... Verified as a documentation bug.
[26 Jun 2017 12:46]
Paul DuBois
Posted by developer: Updated https://dev.mysql.com/doc/refman/5.7/en/create-trigger.html