File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -310,6 +310,7 @@ you spot any mistakes.
310
310
## v2.0.0-alpha9 (2013-08-27)
311
311
312
312
* Add query to pool to execute queries directly using the pool
313
+ * Add ` sqlState ` property to ` Error ` objects #556
313
314
* Pool option to set queue limit
314
315
* Pool sends 'connection' event when it opens a new connection
315
316
* Added stringifyObjects option to treat input as strings rather than objects (#501 )
Original file line number Diff line number Diff line change @@ -1168,6 +1168,7 @@ object. Additionally they typically come with two extra properties:
1168
1168
* ` err.sql ` : String, contains the full SQL of the failed query. This can be
1169
1169
useful when using a higher level interface like an ORM that is generating
1170
1170
the queries.
1171
+ * ` err.sqlState ` : String, contains the five-character SQLSTATE value. Only populated from [ MySQL server error] [ ] .
1171
1172
* ` err.sqlMessage ` : String, contains the message string that provides a
1172
1173
textual description of the error. Only populated from [ MySQL server error] [ ] .
1173
1174
You can’t perform that action at this time.
0 commit comments