I'm trying to move plain SQL query to Laravel query builder.
It's not my first time doing this, but now a "different case has popped up".
I need to set collation for join and in plain SQL it's no problem:
"...
LEFT OUTER JOIN " . $pltable1 . " on PL01001=supplier collate Latvian_BIN
..."
Laravel throws error when I try:
->leftJoin($pltable1, "PL01001", "=", "supplier");
Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Latvian_BIN" in the equal to operation.
I know it's because I didn't specify a collation for join but I have no clue of how to do this. Has anyone encountered something like this and found solution?
P.S. I can't change default collation on table itself