… enable single row mode only when the user wants to stream rows.
…se use the JS functions.
…ersions of the functions.
…port error in standart way); 2. bugfix and code review in native copy to implementation
* add private method const char *GetLastError() to src/binding.cc * add var const char *lastErrorMessage to SendQuery in src/binding.cc * throw result of PQErrorMessage inside SendQuery This commit replaces the static/vague error message "PQsendQuery returned error code" with the actual message text of the error. The method GetLastError() returns the text of PQErrorMessage. GetLastError is called from within SendQuery to retrieve the message.
Before this fix a call to End after an error in Connect() would result in a segfault. #136 (comment)