Skip to content

"Cannot" with association hash conditions : accessible_by generates incorrect SQL (Postgres / ActiveRecord)#856

Open
0llirocks wants to merge 1 commit into
CanCanCommunity:developfrom
0llirocks:develop
Open

"Cannot" with association hash conditions : accessible_by generates incorrect SQL (Postgres / ActiveRecord)#856
0llirocks wants to merge 1 commit into
CanCanCommunity:developfrom
0llirocks:develop

Conversation

@0llirocks
Copy link
Copy Markdown
Contributor

I hope it's enough to link to the relevant issue #214

The commit addresses the issue at its root by checking for IS NULL. PostgreSQL can't compare null values with any other value.

PostgreSQL can't compare null values, IS NULL must be used instead.
@0llirocks
Copy link
Copy Markdown
Contributor Author

@coorasse Hi, you seem to be one of the maintainer. Any updates on this PR? It is still an issue in our applications that we can't really fix otherwise.

Best regards

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