Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-3620

Auto Increment expects the column to be mentioned in the INSERT statement

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • 1.2.5
    • Icebox
    • MDB Plugin
    • None

    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');
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Faisal Faisal Saeed (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.