Skip to content

Commit 304a3e1

Browse files
committed
docs: add missing docs for err.sqlState
1 parent 8e7648a commit 304a3e1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Changes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ you spot any mistakes.
310310
## v2.0.0-alpha9 (2013-08-27)
311311

312312
* Add query to pool to execute queries directly using the pool
313+
* Add `sqlState` property to `Error` objects #556
313314
* Pool option to set queue limit
314315
* Pool sends 'connection' event when it opens a new connection
315316
* Added stringifyObjects option to treat input as strings rather than objects (#501)

Readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,6 +1168,7 @@ object. Additionally they typically come with two extra properties:
11681168
* `err.sql`: String, contains the full SQL of the failed query. This can be
11691169
useful when using a higher level interface like an ORM that is generating
11701170
the queries.
1171+
* `err.sqlState`: String, contains the five-character SQLSTATE value. Only populated from [MySQL server error][].
11711172
* `err.sqlMessage`: String, contains the message string that provides a
11721173
textual description of the error. Only populated from [MySQL server error][].
11731174

0 commit comments

Comments
 (0)