Skip to content
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

Improve dbDataType method for RJDBC connections #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

perrystephenson
Copy link

dbDataType used to return "VARCHAR(255)" for all text columns.
Updated so that it returns "VARCHAR(n)" for text columns, where n is the maximum value of nchar() for that column.

This used to be the default behaviour for DBI, and it seems like sensible default behaviour for RJDBC.

See this link for a discussion around why it was changed to "TEXT" in DBI. I disagree with their logic, but you may find it more compelling.

dbDataType used to return "VARCHAR(255)" for all text columns.
Updated so that it returns "VARCHAR(<max nchar>)" for text columns.
@s-u s-u force-pushed the master branch 5 times, most recently from 30654b9 to 7675ca0 Compare March 12, 2021 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant