Joining a table on multiple criteria #95
-
I am re-working a query where I need to specify 2 criteria in the ON clause for a LEFT JOIN, but can't quite figure it out with Bob. This is for MySQL and the join clause would look like this:
With just a single clause I can do
For multiple criteria, I assume I should just use .On(), but I get square brackets in the output which is not legal, so suggests I am doing something incorrect, e.g.
The output I end up with is
Without the square brackets, the query would work. What am I missing? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Your query should work. This looks like a bug. I'll check and fix. |
Beta Was this translation helpful? Give feedback.
Yes, I'm pretty certain it was fixed in
0.19.1
. Let me know if upgrading solves your issues.PS: Some pretty significant breaking changes will be in the next version too, apologies in advance for any upgrade pain 🙈