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

spider_same_server_link not enforced

Details

    Description

      In this page:

      https://mariadb.com/kb/en/spider-server-system-variables/

      for spider_same_server_link I read:

      "Enable linking a table to the same local instance"

      But it doesn't seem to work:

      MariaDB [test]> SET @@global.spider_same_server_link = OFF;
      Query OK, 0 rows affected (0.00 sec)
       
      MariaDB [test]> SET @@session.spider_same_server_link = OFF;
      Query OK, 0 rows affected (0.00 sec)
       
      MariaDB [test]> CREATE OR REPLACE TABLE test.`test_base` (c INT)
          -> ENGINE = InnoDB;
      Query OK, 0 rows affected (0.54 sec)
       
      MariaDB [test]> CREATE OR REPLACE TABLE test.`test_link` (c INT)
          -> ENGINE = SPIDER
          -> COMMENT 'host "127.0.0.1", user "root", password "root", database "test", table "test_base"';
      Query OK, 0 rows affected (0.12 sec)
       
      MariaDB [test]> INSERT INTO test_link VALUES (1);
      Query OK, 1 row affected (1.05 sec)
       
      MariaDB [test]> SELECT * FROM test.test_link;
      +------+
      | c    |
      +------+
      |    1 |
      +------+
      1 row in set (0.00 sec)

      Attachments

        Activity

          willhan
          I added a check for this parameter. Would you please check it?
          7ea0afd

          Kentoku Kentoku Shiba (Inactive) added a comment - willhan I added a check for this parameter. Would you please check it? 7ea0afd
          willhan willhan added a comment -

          Hi Kentoku
          It's ok,
          and we don't have a scene that needs this parameter.

          willhan willhan added a comment - Hi Kentoku It's ok, and we don't have a scene that needs this parameter.

          It's merged to 10.4 tree. Thanks.

          Kentoku Kentoku Shiba (Inactive) added a comment - It's merged to 10.4 tree. Thanks.

          People

            Kentoku Kentoku Shiba (Inactive)
            f_razzoli Federico Razzoli
            Votes:
            0 Vote for this issue
            Watchers:
            4 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.