wankdanker / node-odbc

ODBC bindings for node
MIT License
174 stars 79 forks source link

Fix blank result in ODBC::GetSQLError and more issues with errors/multiple result sets #4

Closed lee-houghton closed 11 years ago

lee-houghton commented 11 years ago

It seems with MSSQL at least, SQLGetDiagField needs to be called with record number 0 when retrieving header fields such as the error count (even though the documentation states that the record number is ignored). This stops SQLGetDiagField returning SQL _ERROR and thus numfields being uninitialized.

There's also fixes for a couple more issues relating to errors and multiple sets; see lee-houghton@efad9e6b4dc5c729143b79db5480e98b66006553 for details.

wankdanker commented 11 years ago

Thank you for the fixes and insight, @lee-houghton.

Pushed v0.5.32 to npm.