Release Notes for MariaDB Connector/Node.js 2.5.6


MariaDB Connector/Node.js is the interface between Node.js applications and MariaDB Server. MariaDB Connector/Node.js enables development of Node.js applications.

MariaDB Connector/Node.js 2.5.6 was released on 2022-02-17. This release is of General Availability (GA) maturity.

Notable Changes

Issues Fixed

  • On Windows, when LOAD DATA LOCAL INFILE is executed, the file name validation does not handle escaped characters. (CONJS-181)

    • In previous releases, loading data from a file named with escaped characters results in the following error:

    SqlError: (conn=60, no: 45034, SQLState: 45034) LOCAL INFILE wrong filename. 'UNESCAPED_FILENAME' doesn't correspond to query LOAD DATA LOCAL INFILE 'ESCAPED_FILENAME'
  • The default connectTimeout value may not be optimal for production environments and causes misleading error messages when used with connection pools. (CONJS-183)

    • In previous releases, the default connectTimeout value was 10000 (in milliseconds), which is 10 seconds.

    • Starting with this release, the default connectTimeout value is 1000 (in milliseconds), which is 1 second.

    • The previous default connectTimeout value was equal to the default acquireTimeout value. When connection pools are used with the new default connectTimeout value, connection errors are not masked by misleading ER_GET_CONNECTION_TIMEOUT error messages.

  • When the connection character set is set to an unsupported value, the connector does not raise an exception. (CONJS-186)