[MCOL-4269] ADD COLUMN NOT NULL is expecting the new column has to have a default value. Created: 2020-08-24 Updated: 2021-01-14 |
|
| Status: | Open |
| Project: | MariaDB ColumnStore |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Icebox |
| Type: | Bug | Priority: | Major |
| Reporter: | susil.behera | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Server version: 10.5.6 |
||
| Description |
|
ADD COLUMN NOT NULL is expecting the new column has to have a default value. MariaDB [mcs87_db]> CREATE TABLE t1 (c1 INT, c2 CHAR(1)) ENGINE=Columnstore; MariaDB [mcs87_db]> INSERT INTO t1 VALUES (1, 'a'); MariaDB [mcs87_db]> ALTER TABLE t1 ADD COLUMN c11 INT NOT NULL; InnoDB accepts by adding 0 or empty string into the new column added. |