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

No servid special column in ConnectSE

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.0.3
    • 10.0.5
    • None
    • Ubuntu/Presice/LXContainer

    Description

      ConnectSE ships with special columns. I.e. tabid and servid.
      Given:

      CREATE TABLE `federatedconnect` (
        `id` int(11) NOT NULL,
        `id2` int(11) DEFAULT NULL
      ) ENGINE=CONNECT DEFAULT CHARSET=latin1 `TABLE_TYPE`='mysql' `TABNAME`='aha' `DBNAME`='test' `OPTION_LIST`='user=me,host=10.0.3.191'

      We build a table_type=tbl table with the special column tabid

       CREATE TABLE `federatedconnect_s` (
        `server` char(20) NOT NULL DEFAULT 'nix' `special`=tabid,
        `id` int(11) NOT NULL,
        `id2` int(11) DEFAULT NULL
      ) ENGINE=CONNECT DEFAULT CHARSET=latin1 `TABLE_TYPE`='tbl' `table_list`='federatedconnect' 

      MariaDB [test]> select * from federatedconnect_s limit 1;
      +------------------+----+------+
      | server           | id | id2  |
      +------------------+----+------+
      | federatedconnect |  5 | NULL |
      +------------------+----+------+
      1 row in set (0.00 sec)

      Ok that works as expected. Now use the special column servid.

      CREATE TABLE `federatedconnect_s` (
        `server` char(20) NOT NULL DEFAULT 'nix' `special`=servid,
        `id` int(11) NOT NULL,
        `id2` int(11) DEFAULT NULL
      ) ENGINE=CONNECT DEFAULT CHARSET=latin1 `TABLE_TYPE`='tbl' `table_list`='federatedconnect' 

      MariaDB [test]> select * from federatedconnect_s limit 1;
      ERROR 1296 (HY000): Got error 174 'Column *SERVID not found in federatedconnect_s' from CONNECT

      So servid is not there to be used.
      Regards
      Erkan

      Attachments

        Activity

          erkules erkan yanar created issue -
          elenst Elena Stepanova made changes -
          Field Original Value New Value
          Fix Version/s 10.0.5 [ 13201 ]
          Assignee Olivier Bertrand [ bertrandop ]
          bertrandop Olivier Bertrand made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          serg Sergei Golubchik made changes -
          Workflow defaullt [ 28342 ] MariaDB v2 [ 43910 ]
          ratzpo Rasmus Johansson (Inactive) made changes -
          Workflow MariaDB v2 [ 43910 ] MariaDB v3 [ 64196 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 64196 ] MariaDB v4 [ 146912 ]

          People

            bertrandop Olivier Bertrand
            erkules erkan yanar
            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.