Sorry for that. I actually found where the real problem was approximately 
an hour ago when I tried running the same query on an isolated script where 
only Sequel was required, but couldn't undo sending message asking for 
help. I should have rechecked everything couple more times before doing 
that. As for the reason, Apparently hanami-model was somehow responsible 
for broken query even though it wasn't directly used. All `options` on 
joins were expecting keys to be passed in this format:

{
  key: :id,
  foreign_key: :books__original_lang
}

Will have to recheck all the code later to check that nothing like that 
happens. Thank you for replying to that message anyway.

-- 
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