Documentation Home
MySQL Connector/Node.js Release Notes
Download these Release Notes
PDF (US Ltr) - 92.8Kb
PDF (A4) - 93.6Kb
HTML Download (TGZ) - 27.8Kb
HTML Download (Zip) - 55.3Kb


MySQL Connector/Node.js Release Notes  /  Changes in MySQL Connector/Node.js 8.0  /  Changes in MySQL Connector/Node.js 8.0.12 (2018-07-27, General Availability)

Changes in MySQL Connector/Node.js 8.0.12 (2018-07-27, General Availability)

X DevAPI Notes

  • To increase compliance with the X DevAPI, these Connector/Node.js changes were made:

    • Collection: Deprecated: count(). Changed: getSchema() now returns a Schema instance instead of the schema name.

    • CollectionModify: Deprecated: limit(x, y)'s second parameter, and arrayDelete().

    • CollectionFind: Deprecated: limit(x, y)'s second parameter. Added: limit(x).offset(y).

    • CollectionRemove: Deprecated: limit(x, y)'s second parameter.

    • Table: Deprecated: count() and insert(Document) API. Updated: getSchema() now returns a Schema instance instead of the Schema name. Removed: as().

    • TableSelect: Deprecated: limit(x, y)'s second parameter. Added: limit(x).offset(y).

    • TableDelete: Deprecated: limit(x, y)'s second parameter, and delete(x)'s parameter in favor of using where(x) instead.

    • TableUpdate: Deprecated: limit(x, y)'s second parameter, and update(x)'s parameter in favor of using where(x) instead.

    • SqlExecute: Deprecated: sqlExecute() in favor of sql(). Added: bind().

    • Column: Added isNumberSigned(), getCollationName(), getCharacterSetName(), and isPadded()

Bugs Fixed

  • The Promise returned by the session.sql().execute() method resolved to a plain JavaScript object rather than a proper Result instance. This meant it lacked access to the API with methods such as getAffectedItemsCount() and getWarnings(). (Bug #28146988)

  • Retrieving rows with NULL fields would emit an unexpected AssertionError. (Bug #27978594)

  • The session.close() method is now asynchronous by returning a JavaScript Promise, when before it returned immediately. (Bug #27893001)

  • The right-padding mechanism was improved. (Bug #27839295, Bug #28275595, Bug #91503)

  • While calling getSession() without arguments yields an "Invalid parameter." error, passing in '{}' yielded a "Cannot read property 'length' of undefined." error. Now '{}' is allowed, and getSession() defaults to using '' as the user name. (Bug #27730748)

  • Improved performance for expression parsing and protocol message encoding.