Skip to content

Spec for json column regression - #608

Closed
oleksii-leonov wants to merge 1 commit into
CanCanCommunity:developfrom
cropio:regression/spec-for-json-column-regression
Closed

Spec for json column regression#608
oleksii-leonov wants to merge 1 commit into
CanCanCommunity:developfrom
cropio:regression/spec-for-json-column-regression

Conversation

@oleksii-leonov

@oleksii-leonov oleksii-leonov commented Dec 6, 2019

Copy link
Copy Markdown
Contributor

Starting 4d1f0d4 .distinct used in build_relation (if joins present).

DISTINCT would fail when used on tables with json columns (PostgreSQL have no equality operator for type json).
Example: ERROR: could not identify an equality operator for type json LINE 1: SELECT DISTINCT "users".* FROM ...

Looks like this is regression, so added spec to cover this case.
This PR intentionally fails (TravisCI) on develop branch for postgresql adapter (due to regression).

Regression was added using DISTINCT for `build_relation`.
@oleksii-leonov oleksii-leonov changed the title Add spec for json column regression Spec for json column regression Dec 6, 2019
@oleksii-leonov

Copy link
Copy Markdown
Contributor Author

#605 could be a solution.

@coorasse

coorasse commented Mar 6, 2020

Copy link
Copy Markdown
Member

closed in #619

@coorasse coorasse closed this Mar 6, 2020
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.

2 participants