Skip to content

Improve dbDataType method for RJDBC connections#37

Open
perrystephenson wants to merge 1 commit intos-u:masterfrom
perrystephenson:master
Open

Improve dbDataType method for RJDBC connections#37
perrystephenson wants to merge 1 commit intos-u:masterfrom
perrystephenson:master

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