Skip to content

An option to force decimals to convert to numeric instead of character? #92

Description

@ajirnyi

Hi all -- thank you for your great software!

We have been using RJDBC 0.2-8 with MS SQL Server backend; unfortunately we recently ran into issues trying to upgrade to 0.2-10 (off CRAN): in many cases decimal values that were previously converted to numeric are now returned as character. Most likely this is related to this change in 0.2-9: be457e1.

In our particular case we are fine with the potential loss of precision, but since this is a large code base with many DB accesses etc., changing all the queries and SPs to add explicit casts to floats is not currently realistic, so we're stuck with 0.2-8.

Is there an easier way to force decimal values to return as numeric (perhaps with some option setting?), or if not, would you consider that as a feature request?

Thanks! :)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions