forked from ifxdb/node-ifx_db
-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
- I would like to see the error code in the err json structure
- I probably don't need duplicate Error and message fields
- We have lower and upper case Error/error that seem different. Is error needed?
{ Error: [Informix][Informix ODBC Driver][Informix]Unique constraint (informix.u100_2) violated.
errors: [],
error: '[node-ifxnjs] SQL_ERROR',
message: '[Informix][Informix ODBC Driver][Informix]Unique constraint (informix.u100_2) violated.',
state: '23000' }
Maybe an error structure like this would be more useful
{
type: SQL, //presume you might want to differentiate between server error and driver error ? else this might not be needed either
code: -1234,
message: '[Informix][Informix ODBC Driver][Informix]Unique constraint (informix.u100_2) violated.',
state: '23000'
}
Metadata
Metadata
Assignees
Labels
No labels