The connection pointer was being freed before accessing the error. This
resulted in a 'connection pointer is NULL' error message being returned,
making it hard to debug what was actually causing the issue. Now I read the
error message before freeing the connection. :tada:
The connection pointer was being freed before accessing the error. This resulted in a 'connection pointer is NULL' error message being returned, making it hard to debug what was actually causing the issue. Now I read the error message before freeing the connection. :tada:
fixes https://github.com/brianc/node-pg-native/issues/13