Uploaded image for project: 'MariaDB Connector/node.js'
  1. MariaDB Connector/node.js
  2. CONJS-119

Add an option to detect Server version using a dedicated SELECT @@version

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.0
    • Component/s: compatibility
    • Labels:
      None

      Description

      see https://github.com/mariadb-corporation/mariadb-connector-nodejs/issues/96
      Azure is using a proxy that will return a MySQL handshake not reflecting real server.

      from https://docs.microsoft.com/en-us/azure/mariadb/concepts-supported-versions :

      Note: In the service, a gateway is used to redirect the connections to server instances. After the connection is established, the MySQL client displays the version of MariaDB set in the gateway, not the actual version running on your MariaDB server instance. To determine the version of your MariaDB server instance, use the SELECT VERSION(); command.

      A new option `forceVersionCheck` has to be added to permit issuing a new SELECT @@version to retrieve the correct server version. Connector will then act according to that server version.

        Attachments

          Activity

            People

            Assignee:
            diego dupin Diego Dupin
            Reporter:
            diego dupin Diego Dupin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: