Skip to content

Return 'jsonb' as strings - #78

Closed
jeroen wants to merge 1 commit into
masterfrom
jsonb
Closed

jeroen wants to merge 1 commit into
masterfrom
jsonb

Conversation

@jeroen

@jeroen jeroen commented Feb 2, 2016

Copy link
Copy Markdown
Member

The distinction between json and jsonb types only matters internally to postgres to determine if the json data gets stored in the db as an actual string or as a queryable json object. In the end, both types are the same json data and both should turn into a string in R, not a raw vector.

@krlmlr

krlmlr commented Feb 2, 2016

Copy link
Copy Markdown
Member

Looks good, it was also suggested independently in #55. Do we need a test for that?

@jeroen

jeroen commented Feb 2, 2016

Copy link
Copy Markdown
Member Author

@robertzk can you comment if this is works for you?

@jeroen

jeroen commented Feb 2, 2016

Copy link
Copy Markdown
Member Author

@krlmlr seems fine to me, you can merge either one or the other...

@JackStat

JackStat commented Feb 2, 2016

Copy link
Copy Markdown
Contributor

I have some tests in #55 I can expand it to test that it isn't coming back in a strange way.

@robertzk

robertzk commented Feb 2, 2016

Copy link
Copy Markdown
Contributor

I agree that pg JSON data should be converted to a string upon reads.

@krlmlr krlmlr closed this in 2c4e0f7 Feb 2, 2016
@krlmlr

krlmlr commented Feb 2, 2016

Copy link
Copy Markdown
Member

Thanks for the heads up. I merged #55, it came with a test, and merging this PR would most likely have introduced merge conflicts.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Dec 7, 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.

4 participants