mysqljs / mysql

A pure node.js JavaScript Client implementing the MySQL protocol.
MIT License
18.22k stars 2.53k forks source link

Change UNKNOWN_CODE_PLEASE_REPORT to identify uknown code #2516

Open glensc opened 2 years ago

glensc commented 2 years ago

Changes UNKNOWN_CODE_PLEASE_REPORT to include packet.errno in it.

This makes it easier to identify what the code is even if the code is not yet supported:

(node:1) UnhandledPromiseRejectionWarning: Error: UNKNOWN_CODE_PLEASE_REPORT: Query execution was interrupted, query_timeout exceeded
glensc commented 2 years ago

@dougwilson 19aa86d