-
Notifications
You must be signed in to change notification settings - Fork 42
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
Cannot retrieve group members in pg #74
Labels
Comments
Same here. |
Seems to be a side-effect of how
|
@dwbutler has there been any resolution for this? |
@NanoMeko were you ever able to resolve this? |
Yeap, I decided to build my own group relationships with ActiveRecord
🤷🏽♂️
…On Fri, 12 Jul 2019 at 08:56, Kevin Collignon ***@***.***> wrote:
@NanoMeko <https://github.com/NanoMeko> were you ever able to resolve
this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#74?email_source=notifications&email_token=AAYESWKOULAHZ6UQ4RU24TDP7AMJZA5CNFSM4FQ3SXW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZYYPNI#issuecomment-510756789>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAYESWL3PLOUQ6WO5E7UQX3P7AMJZANCNFSM4FQ3SXWQ>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[30] pry(main)> g.members.count
(0.7ms) SELECT DISTINCT COUNT(DISTINCT "users"."id") FROM "users" INNER JOIN "group_memberships" ON "users"."id" = "group_memberships"."member_id" WHERE "group_memberships"."group_id" = $1 AND "group_memberships"."group_type" = $2 AND "group_memberships"."member_type" = $3 [["group_id", 4], ["group_type", "Group"], ["member_type", "User"]]
=> 1
so far so good.
[31] pry(main)> g.members.first
ActiveRecord::StatementInvalid: PG::UndefinedFunction: ERROR: could not identify an equality operator for type json
LINE 1: SELECT DISTINCT "users".* FROM "users" INNER JOIN "group_me...
^
: SELECT DISTINCT "users".* FROM "users" INNER JOIN "group_memberships" ON "users"."id" = "group_memberships"."member_id" WHERE "group_memberships"."group_id" = $1 AND "group_memberships"."group_type" = $2 AND "group_memberships"."member_type" = $3 ORDER BY "users"."id" ASC LIMIT $4
from /Users/.../.gem/ruby/2.3.0/gems/activerecord-5.0.6/lib/active_record/connection_adapters/postgresql_adapter.rb:657:in `prepare'
\
The text was updated successfully, but these errors were encountered: