Closed lee-houghton closed 11 years ago
Awesome. Thank you for the pull request. Everything looks pretty good. I'm especially psyched about the Unicode debug messages. That was really bothering me!
The only exception would be that I think the proper way to handle the moreResultsSync()
function would be to throw the exception from C++ and try/catch it in odbc.js. I think that's how I've handled errors in other Sync() functions. I'll take care of that though when I do this merge.
Thanks again.
Dan
See https://github.com/w1nk/node-odbc/issues/54.
This seemed like the simplest method of fixing the issue, but perhaps you can see a better way.
At the same time I've fixed the
DEBUG_PRINTF
call inODBC::GetSQLError
trying to print unicode messages using the normal fprintf.I also noticed that in
ODBC::GetSQLError
thenumfields
variable is not initialized properly and has a garbage value, even after calling SQLGetDiagField -- I've added thebreak;
in to work around this, but it should probably be fixed properly...