-
Notifications
You must be signed in to change notification settings - Fork 102
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
Date Parsing with DB2 driver #18
Comments
I forgot to mention that the db2.queryDB function is just a wrapper: exports.queryDB = function(sql, callback) {
} |
I was able to fix this issue by casting to double before multiplication tuple->Set(String::New((const char *)columns[i].name), Date::New(double(mktime(&timeInfo)) * 1000 )); |
Hey @radiodario, Thanks for the report. I'll try out your fix to make sure it doesn't break MSSQL and anything else I can try. I'm glad you were able to get that working. |
…for the suggestion. Fixes #18
thanks! |
Dan - if you can send me a pull req, I'll go ahead and merge it in. I'll find you on irc later today also! |
First of all, thanks for these bidings, they are proving incredibly useful.
I'm using odbc version 0.3.1 (as installed from npm)
I'm encountering difficulties parsing TIMESTAMPS coming from a IBM DB2 driver:
When I run the same query on isql i get the correct results i.e
SQL> select eventdate from dev.trace_table order by EVENTDATE desc fetch first row only with ur
+---------------------------+
| EVENTDATE |
+---------------------------+
| 2012-04-05 07:30:19.160547|
+---------------------------+
SQLRowCount returns -1
1 rows fetched
The text was updated successfully, but these errors were encountered: