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

Minor Docs bug re: Connect Storage Engine

Details

    Description

      This page:

      https://mariadb.com/kb/en/mariadb/connect/

      It says the CONNECT version included in MariaDB 10.0.19 is Connect 1.03.0007.

      However, in the Windows MariaDB 10.0.19, I see Connect 1.03.0006.

      C:\Windows\system32>mysql -uroot -pxxx -P3315 -e"select version(); select * from information_schema.plugins where plugin_name='connect'\G"
      +---------------------+
      | version()           |
      +---------------------+
      | 10.0.19-MariaDB-log |
      +---------------------+
      *************************** 1. row ***************************
                 PLUGIN_NAME: CONNECT
              PLUGIN_VERSION: 1.3
               PLUGIN_STATUS: ACTIVE
                 PLUGIN_TYPE: STORAGE ENGINE
         PLUGIN_TYPE_VERSION: 100019.0
              PLUGIN_LIBRARY: ha_connect.dll
      PLUGIN_LIBRARY_VERSION: 1.8
               PLUGIN_AUTHOR: Olivier Bertrand
          PLUGIN_DESCRIPTION: Management of External Data (SQL/MED), including many file formats
              PLUGIN_LICENSE: GPL
                 LOAD_OPTION: ON
             PLUGIN_MATURITY: Beta
         PLUGIN_AUTH_VERSION: 1.03.0006

      Attachments

        Activity

          It's not a doc bug, but the connect engine bug. The version differs in ha_connect.cc:

          ...
          extern "C" {
                 char  version[]= "Version 1.03.0007 April 30, 2015";
          #if defined(WIN32)
                 char  compver[]= "Version 1.03.0007 " __DATE__ " "  __TIME__;
                 char slash= '\\';
          ...

          maria_declare_plugin(connect)
          {
            MYSQL_STORAGE_ENGINE_PLUGIN,
            &connect_storage_engine,
            "CONNECT",
            "Olivier Bertrand",
            "Management of External Data (SQL/MED), including many file formats",
            PLUGIN_LICENSE_GPL,
            connect_init_func,                            /* Plugin Init */
            connect_done_func,                            /* Plugin Deinit */
            0x0103,                                       /* version number (1.03) */
            NULL,                                         /* status variables */
            connect_system_variables,                     /* system variables */
            "1.03.0006",                                  /* string version */
            MariaDB_PLUGIN_MATURITY_BETA                  /* maturity */
          }
          maria_declare_plugin_end;

          As a result:

          MariaDB [test]> select * from information_schema.plugins where plugin_name = 'CONNECT' \G
          *************************** 1. row ***************************
                     PLUGIN_NAME: CONNECT
                  PLUGIN_VERSION: 1.3
                   PLUGIN_STATUS: ACTIVE
                     PLUGIN_TYPE: STORAGE ENGINE
             PLUGIN_TYPE_VERSION: 100019.0
                  PLUGIN_LIBRARY: ha_connect.so
          PLUGIN_LIBRARY_VERSION: 1.8
                   PLUGIN_AUTHOR: Olivier Bertrand
              PLUGIN_DESCRIPTION: Management of External Data (SQL/MED), including many file formats
                  PLUGIN_LICENSE: GPL
                     LOAD_OPTION: ON
                 PLUGIN_MATURITY: Beta
             PLUGIN_AUTH_VERSION: 1.03.0006
          1 row in set (0.00 sec)

          Error log

          150522  1:11:10 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.23-72.1 started; log sequence number 1620561
          150522  1:11:10 [Note] CONNECT: Version 1.03.0007 April 30, 2015
          150522  1:11:10 [Note] Server socket created on IP: '::'.

          elenst Elena Stepanova added a comment - It's not a doc bug, but the connect engine bug. The version differs in ha_connect.cc: ... extern "C" { char version[]= "Version 1.03.0007 April 30, 2015"; #if defined(WIN32) char compver[]= "Version 1.03.0007 " __DATE__ " " __TIME__; char slash= '\\'; ... maria_declare_plugin(connect) { MYSQL_STORAGE_ENGINE_PLUGIN, &connect_storage_engine, "CONNECT", "Olivier Bertrand", "Management of External Data (SQL/MED), including many file formats", PLUGIN_LICENSE_GPL, connect_init_func, /* Plugin Init */ connect_done_func, /* Plugin Deinit */ 0x0103, /* version number (1.03) */ NULL, /* status variables */ connect_system_variables, /* system variables */ "1.03.0006", /* string version */ MariaDB_PLUGIN_MATURITY_BETA /* maturity */ } maria_declare_plugin_end; As a result: MariaDB [test]> select * from information_schema.plugins where plugin_name = 'CONNECT' \G *************************** 1. row *************************** PLUGIN_NAME: CONNECT PLUGIN_VERSION: 1.3 PLUGIN_STATUS: ACTIVE PLUGIN_TYPE: STORAGE ENGINE PLUGIN_TYPE_VERSION: 100019.0 PLUGIN_LIBRARY: ha_connect.so PLUGIN_LIBRARY_VERSION: 1.8 PLUGIN_AUTHOR: Olivier Bertrand PLUGIN_DESCRIPTION: Management of External Data (SQL/MED), including many file formats PLUGIN_LICENSE: GPL LOAD_OPTION: ON PLUGIN_MATURITY: Beta PLUGIN_AUTH_VERSION: 1.03.0006 1 row in set (0.00 sec) Error log 150522 1:11:10 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.23-72.1 started; log sequence number 1620561 150522 1:11:10 [Note] CONNECT: Version 1.03.0007 April 30, 2015 150522 1:11:10 [Note] Server socket created on IP: '::'.

          Thanks Elena. I forgot that version should be updated in two different places.

          bertrandop Olivier Bertrand added a comment - Thanks Elena. I forgot that version should be updated in two different places.

          People

            bertrandop Olivier Bertrand
            ccalender Chris Calender (Inactive)
            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.