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

Handle bigint #112

Closed
wants to merge 1 commit into from
Closed

Handle bigint #112

wants to merge 1 commit into from

Conversation

parisni
Copy link

@parisni parisni commented Jan 9, 2017

Hey,

I had two surprises today:

  1. bigint were not handle well by RPostgres (both pull & push). This lead to invisible error, and was difficult to debug eg: 8998329829898429834 -> 1878743324
  2. When trying to modify the code, I learned that R do not handle int8. The usual solution is to cast them as character (https://www.r-bloggers.com/r-in-a-64-bit-world/)

Then find here the patch that handle postgresql bigint as strings.
BTW, dbWriteTable will create TEXT field.

My guess is this is inevitable.

@parisni parisni mentioned this pull request Jan 9, 2017
@krlmlr
Copy link
Member

krlmlr commented Aug 7, 2017

Thanks. We'll offer better support for 64-bit integers in the future, leaving this open as a reference.

@krlmlr
Copy link
Member

krlmlr commented Dec 17, 2019

bigint handled now via bigint argument to dbConnect().

@krlmlr krlmlr closed this Dec 17, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants