-
Notifications
You must be signed in to change notification settings - Fork 47
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
Implement different data types in fetch and dbWriteTable #22
Comments
Possibly related to #8 |
Looking forward for this update 👍 |
The author (or somebody) wrote this on the RJDBC homepage:
So, now I know why I can't use Damn... If I switch to odbc for R, I'll lose the cross-platform nature of RJDBC. (It doesn't matter that ODBC is supposedly available on Linux; I never got it working for SQL Server...) |
For what it is worth, I was able to solve the specific problem I was having with code something like this:
|
1c6399c adds support for (custom) conversions from the DBMS. |
Currently the fetch method (and Java backend) only supports encoding fields as numeric or character vectors. I'm working around this in RSQLServer by using RJDBC's fetch method but then coercing fields to their corresponding R type.
It would be great if this could be expanded to cover integer, Date, POSIXct, logical and raw vectors. Has this been considered in the past? And would this be a possibility in the future? If so, I am happy to contribute to the solution.
It would also be great if this more granular type handling be reflected in dbWriteTable / dbDataType.
The text was updated successfully, but these errors were encountered: