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

auto increment needs to use MariaDB's auto increment methods

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Won't Do
    • 1.0.9
    • Icebox
    • N/A

    Description

      We have a ColumnStore table with an autoincrement column (defined as a comment in the table, as documented here).

      We noticed that none of the usual methods of retrieving the current autoincrement value for the table work:
      • SELECT LAST_INSERT_ID()
      o Doesn't work, that is, it is not affected by inserts or updates into ColumnStore tables. Works fine for InnoDB.
      • SELECT AUTO_INCREMENT FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = '<SCHEMA>' AND TABLE_NAME = '<TABLE>'
      o Always returns NULL;
      • mysql_insert_id() (from libmysql)
      o Always returns 0.
      • JDBC driver calls
      o Always return 0.
      This is breaking our code, as the ORMs we use (for instance, Rails' Active Record or Scala's SORM) depend on this value being returned and/or available somehow.

      Is this a bug? If not, is there any other way to retrieve the current autoincrement value?

      Attachments

        Issue Links

          Activity

            People

              toddstoffel Todd Stoffel (Inactive)
              dthompson David Thompson (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              7 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.