Bug #95192 | CHECK constraint comparing column with default value is not enforced | ||
---|---|---|---|
Submitted: | 29 Apr 2019 19:41 | Modified: | 29 Oct 2019 12:25 |
Reporter: | Georgi Sotirov | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S3 (Non-critical) |
Version: | 8.0.16 | OS: | Windows (10) |
Assigned to: | CPU Architecture: | x86 (64 bits) |
[29 Apr 2019 19:41]
Georgi Sotirov
[29 Apr 2019 20:57]
MySQL Verification Team
Thank you for the bug report.
[1 Aug 2019 16:55]
Paul DuBois
Posted by developer: Fixed in 8.0.18. CHECK constraints were not enforced when a column took its default value from an expression.
[29 Oct 2019 12:25]
Georgi Sotirov
Confirmed fixed in MySQL 8.0.18 with the provided test case as the second query now properly fails. Thanks!