Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Tweak the wrapValue function to allow for array column operations #287
This is probably not the general-purpose solution to the problem I'm encountering, but it solves my issues. I need to do a join on table.array_column = value, but the existing wrapValue process turns that into "table"."array_column" instead of "table"."array_column". This seemed like the best place to find that case and fix it.
In where clauses, I could do a whereRaw to brute-force the double-quotes, but there doesn't seem to be a similar functionality in join clauses. That would be another way to solve this problem, though - allow for a join(this.raw("stuff")) (which currently throws a toLowerCase error when compileJoins tries to lowercasify the Raw.