[MCOL-3620] Auto Increment expects the column to be mentioned in the INSERT statement Created: 2019-11-20  Updated: 2019-11-21  Resolved: 2019-11-21

Status: Closed
Project: MariaDB ColumnStore
Component/s: MDB Plugin
Affects Version/s: 1.2.5
Fix Version/s: Icebox

Type: Bug Priority: Major
Reporter: Faisal Saeed (Inactive) Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates MCOL-479 insert omitting not null autoincremen... Closed
duplicates MCOL-780 auto increment needs to use MariaDB's... Closed

 Description   

CREATE TABLE `t` (
  `id` bigint(20) NOT NULL COMMENT 'autoincrement=1',
  `name` varchar(80) NOT NULL,
  `country` varchar(14) NOT NULL
) ENGINE=Columnstore DEFAULT CHARSET=utf8

ID being autoincrement should be skipped from the INSERT statements following MariaDB server standards and it is also documented in https://mariadb.com/kb/en/library/columnstore-create-table/

Currently, with 1.2.5, when INSERTING without the "ID" column fails with an error message: Field 'id' doesn't have a default value

INSERT INTO t(name, country) VALUES ('foo', 'bar');


Generated at Thu Feb 08 02:44:11 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.