Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The callback for db.close() never gets invoked #41

Closed
theduderog opened this issue Jun 25, 2013 · 4 comments
Closed

The callback for db.close() never gets invoked #41

theduderog opened this issue Jun 25, 2013 · 4 comments

Comments

@theduderog
Copy link

Sorry, this may be more of a question than an issue but I don't know where else to ask it.

If I call open() on the db object, then close(), the callback for close() will get invoked. If, however, I add in a call to db.describe(), the callback for close() never gets invoked. Is there some kind of cleanup I need to do?

https://gist.github.com/theduderog/d24bf6820d9a034f1763

I'm using Ubuntu 12.04, node v0.10.11, libsqliteodbc 0.91-3, unixodbc 2.2.14p2-5ubuntu3 but I've also tested that the same behavior happens with the SAP Hana odbc driver.

@theduderog
Copy link
Author

I've tested the db.query() function and it does not have the same issue.

@wankdanker
Copy link
Collaborator

What version of node-odbc? Maybe try with npm install git://github.com/wankdanker/node-odbc.git#v0.5

@theduderog
Copy link
Author

I was using 0.4.4. Installing 0.5 as you suggested has fixed the problem.
Thanks!

On Tue, Jun 25, 2013 at 11:08 AM, Dan VerWeire notifications@github.comwrote:

What version of node-odbc? Maybe try with npm install git://
github.com/wankdanker/node-odbc.git#v0.5


Reply to this email directly or view it on GitHubhttps://github.com//issues/41#issuecomment-19995582
.

@wankdanker
Copy link
Collaborator

Cool. Glad that worked. I'll get that version published on npm as soon as I guarantee there are no memory leaks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants