Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-7371

DEFAULT values for CONNECT tables

    XMLWordPrintable

Details

    Description

      From the error I get in this test case, I suppose that CONNECT doesn't support default values (the error is a bit obscure). However, supporting default values would be useful at least for PROXY tables built on non-CONNECT tables.

      MariaDB [test]> CREATE OR REPLACE TABLE abc (
          -> c INT NOT NULL DEFAULT 1
          -> ) ENGINE = InnoDB;
      Query OK, 0 rows affected (0.48 sec)
       
      MariaDB [test]> CREATE OR REPLACE TABLE conn (
          -> c INT NOT NULL DEFAULT 1
          -> )
          -> ENGINE = CONNECT
          -> TABLE_TYPE = PROXY
          -> TABNAME = abc
          -> OPTION_LIST = 'user=root,password=root';
      Query OK, 0 rows affected (0.09 sec)
       
      MariaDB [test]> INSERT INTO abc VALUES (DEFAULT);
      Query OK, 1 row affected (0.08 sec)
       
      MariaDB [test]> INSERT INTO conn VALUES (DEFAULT);
      ERROR 1296 (HY000): Got error 174 'COLBLK SetBuffer: undefined Access Method' from CONNECT

      If I retry the test case without specifying the columns definitions for conn table, I get the following error:

      ERROR 1364 (HY000): Field 'c' doesn't have a default value

      Attachments

        Activity

          People

            Unassigned Unassigned
            f_razzoli Federico Razzoli
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.