-
Notifications
You must be signed in to change notification settings - Fork 107
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 columns #17
Comments
This should be a straightforward fix to |
Came to raise the same issue, but its already here, so I guess this is a +1. |
In the dev version, DATETIMEs and TIMESTAMPs are retrieved as POSIXct, and DATEs are retrieved as Dates. Will have similar code for sending shortly |
Thanks Hadley - please let me know how I can help.
|
Dealing with timezones was tricky, but I'm pretty sure it's correct now. |
run into the same problem. Date column from R data frame is still loaded as text if I send the dataframe to Mysql. My RMySQL version is 0.10.3 |
Experiencing the same problem as ywhuofu. Has it not been fixed or are we using it wrong? |
Might be experiencing the same (or at least closely related) issue. I write POSIXct objects into a DATETIME column. In phpMyAdmin everything looks fine. When I retrieve the data with
The DATETIME column only contains the value 1970-01-01 00:59:59 all over the table. Same applies to a column of type TIMESTAMP. |
RMySQL seems to use text for Date (and POSIXct) columns. It should use MySQL date type and datetime or timestamp type and convert correctly in both directions.
which produces:
but d should be of MySQL date type, not text.
The text was updated successfully, but these errors were encountered: