Bug #47159 | Triggers on not null fields fails in Win 5.1.38, work fine on Mac 5.1.38 | ||
---|---|---|---|
Submitted: | 6 Sep 2009 22:18 | Modified: | 7 Oct 2009 4:04 |
Reporter: | Jan Zawadzki | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server: Stored Routines | Severity: | S1 (Critical) |
Version: | 5.1.38 | OS: | Windows (Server 2003) |
Assigned to: | CPU Architecture: | Any | |
Tags: | NOT NULL, trigger |
[6 Sep 2009 22:18]
Jan Zawadzki
[7 Sep 2009 4:04]
Valeriy Kravchuk
Actually, the result depends on storage engine used by default and sql_mode setting use by default. You either get a warning (MyISAM or empty sql_mode on Mac) and trigger has a chance to work, or error (InnoDB + strict SQL mode on Windows), with zero chances to work. In any case, NOT NULL constraint is checked BEFORE trigger fires.
[7 Oct 2009 23:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".