Hi Jeremy,

Just curious, how do you expect one to handle a join happening after a call 
to "this" such that there are multiple primary keys?

The code in #this looks like:

cond = if ds.joined_dataset?
  qualified_pk_hash
else
  pk_hash
end


So if you do this.association_join(:association).select_map([:id]), the 
where condition would throw an error since :id is ambiguous.

Perhaps we could have a way to force the qualified_pk_hash like 
record.this(true) or record.this(qualified: true).

Thoughts?

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to