Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Won't Fix
-
10.0.9
-
None
-
None
Description
Test case for MySQL "bug#11747847 - 34280: create table fails if NO_ZERO_DATE or NO_ZERO_IN_DATE SQL mode is set" fails in 10.0.
Test diff attached. Please try to apply test case as is unless it is applicable.
Attachments
Issue Links
- is part of
-
MDEV-4784 merge test cases from 5.6
-
- Stalled
-
- links to
I'm not sure we need to fix it. Current behavior is consistent — everything that causes a truncation warning during INSERT is rejected as a default value on CREATE. Compare:
Both 1 and 3 will issue a truncation warning. Both 2 and 4 will fail. This is consistent.
After Oracle's fix for MySQL bug #11747847 - 34280, the 2 won't fail. But 4 still will.
This is inconsistent.
I'd prefer to leave it as is, or to fix both 2 and 4 not to fail, a.k.a. use the same logic in INSERT and CREATE.