-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
nulls values #33
Comments
Fixed in a107dc6 Let me know if it works for you. |
Thanks, it works. The type conversion (for datetime): Ideally, I would like to specify a callback (plugin) for type casting. |
It assumes that your dates are stored as UTC+0. But I can see why this may not be the case. I guess it would be better to simply leave out the 'Z' as it is still possible to adjust the date/time offset afterwards, right?
Ok, I'm tracking this idea as #35. Not sure when I'll get to it so. --fg |
thank you, |
prerequisite for issue mysqljs#33
Hi,
NULLs values (dates/numbers/integers) are not properly handled.
Try:
select date_column from table where date_column is null;
In query.js :
row[field.name] = new Date(row[field.name]+'Z'); // row[field.name] is null !
The text was updated successfully, but these errors were encountered: