Ray Zane
Ray Zane
Hey @rocket-turtle, I merged #122, but there does appear to be a conflict here.
Hmm this is interesting. Could you create a reproducible test case based on this example: https://github.com/rzane/baby_squeel/blob/master/ISSUE_TEMPLATE.md
I'm happy to help, but I'll need a little information than "it didn't work". Did it throw an error? If so, could you provide a backtrace? If not, what SQL...
Okay, so when you're saying: ```ruby where.has { st_intersects(:latlon, addressable) } ``` That actually translates to: ```ruby func = Arel::Nodes::NamedFunction.new('st_intersects', [:latlon, addressable]) func.to_sql # Boom! ``` Arel doesn't know how...
How can I get an instance of whatever `addressable` is? Can you work up an actual test for me to try out? I'm happy to help, but I don't have...
Yeah, sorry for closing. I don't think this is a baby squeel issue, but it would be cool to get it working. It seems like it should be doable 🤷♂️...
Hmm... sort of, but this feels pretty like it would cause unexpected problems that would be really hard to figure out what went wrong. Plus, then we'd have to support...
This is the same as #42. The exact expression you're trying to do isn't currently implemented, but baby_squeel does have limited support for subqueries. + `Post.where.has { author.id.in Author.select(:id).limit(3) }`...
I did a little investigation. Here's a gist of what I think it would take. ```ruby class Arel::Nodes::TableAlias def on(node) table = BabySqueel::Table.new(self) table.on(node) end end ``` That'll get you...
@danielnc I got this sort of working, but binds parameters don't work. https://github.com/rzane/baby_squeel/compare/join-wip