[MDEV-13745] ALTER TABLE…ADD COLUMN…POINT NOT NULL without DEFAULT should be refused if the table is not empty Created: 2017-09-06 Updated: 2023-12-05 |
|
| Status: | Stalled |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Alter Table, GIS |
| Affects Version/s: | 10.2 |
| Fix Version/s: | 10.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Marko Mäkelä | Assignee: | Alexey Botchkov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | consistency, default | ||
| Issue Links: |
|
||||||||
| Sprint: | 10.2.10, 10.2.14 | ||||||||
| Description |
|
The following test is based on the test innodb_gis.alter_spatial_index. For
Currently, the ALTER TABLE (no matter if ALGORITHM=COPY or ALGORITHM=INPLACE is specified) will insert the invalid value c2='' (the empty string). But, the INSERT is returning an error:
The behaviour of ALTER TABLE and INSERT are inconsistent with each other. appended by HF:
|