Closed FlamingTempura closed 9 years ago
This is probably something that should be normalized within node-postgres itself rather than here in the native lib. If you wanna take a crack at it over there I'll happily review the PR!
Thanks for your reply.
I've decided not to pursue this as I've begun using pg-query-stream which isn't compatible with pg-native. I'll close this for now.
Great work on these libraries by the way!
Errors returned by
client.query(function (err) {})
in node-pg-native look very different to errors in node-postgres, which means it cannot be used as a drop in replacement where error checking is required (e.g. checking which constraint caused an error).Example error from node-postgres (caused by a unique index):
The same error from node-pg-native looks very different: