-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added identiferEquals method for expressions to use fields with quoti… #8242
Conversation
…ng in join conditions. Added identifier parameter for expressions.
*/ | ||
public function equalFields($left, $right) | ||
{ | ||
return $this->eq(new IdentifierExpression($left), new IdentifierExpression($right)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we we should test for $left and $right not being ExpressionInterface
before wrapping them in an identifier expression
{ | ||
$wrapIdentifier = function ($field) { | ||
if ($field instanceof ExpressionInterface) { | ||
return $field; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do any of the tests get in here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, Query tests cover this method.
This looks good to me. Any thoughts @lorenzo ? |
Woops, I thought it was merged already |
Added identiferEquals method for expressions to use fields with quoti…
…ng in join conditions. Added identifier parameter for expressions. Request created against master to replace #8238