[CONJS-28] Implement Error.code Created: 2018-03-30  Updated: 2018-04-30  Resolved: 2018-04-30

Status: Closed
Project: MariaDB Connector/node.js
Component/s: API
Affects Version/s: None
Fix Version/s: 0.7.0-alpha

Type: Task Priority: Major
Reporter: Diego Dupin Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None


 Description   

mysql and mysql implement Error.code, a String that indicate variable name.
Normally connector must provide error number, connector must not have any need to know error variable name, but since provided, some framework now begin to rely on those code :
example : https://github.com/sequelize/sequelize/blob/3fedaa431667cabd51b524409a32415b830b0398/lib/dialects/mysql/connection-manager.js#L137

The only way to provide compatibility is to provide those additional bad information.


Generated at Thu Feb 08 03:22:14 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.