[MDEV-16365] Setting a column NOT NULL fails to return error for NULL values when there is no DEFAULT Created: 2018-05-31 Updated: 2019-03-04 Resolved: 2018-06-26 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.3.7 |
| Fix Version/s: | 10.3.8 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Marko Mäkelä | Assignee: | Thirunarayanan Balathandayuthapani |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | online-ddl, regression | ||
| Issue Links: |
|
||||||||||||||||||||
| Description |
|
If I change the statement to use ALGORITHM=COPY, it will fail with a different message (in both 10.2 and 10.3):
The invariant should be that ALGORITHM=INPLACE and ALGORITHM=COPY produce the same result. After With SQL_MODE='' (not STRICT_TRANS_TABLES), warnings would be reported for each row in ALGORITHM=COPY:
Similarly, warnings will be reported by ALTER IGNORE TABLE, also for SQL_MODE='STRICT_TRANS_TABLES' values. I think that ALGORITHM=INPLACE should be fixed so that it will report errors or warnings for the affected rows. As part of the fix, the following code (which I expected
|
| Comments |
| Comment by Marko Mäkelä [ 2018-06-21 ] |
|
OK to push after addressing my review comments. |