Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Zend\Db\Sql\Select: Fixed issue with join expression named parameters overlapping. #2420

Closed
wants to merge 2 commits into from
Closed

Zend\Db\Sql\Select: Fixed issue with join expression named parameters overlapping. #2420

wants to merge 2 commits into from

Conversation

ralphschindler
Copy link
Member

Originally reported in #2416

* Fixed issue where multiple join's with expressions would overlap named parameters
@ghost ghost assigned weierophinney Sep 25, 2012
@@ -620,7 +620,7 @@ protected function processJoins(PlatformInterface $platform, Adapter $adapter =
: $platform->quoteIdentifier($join['name']);
// on expression
$joinSpecArgArray[$j][] = ($join['on'] instanceof ExpressionInterface)
? $this->processExpression($join['on'], $platform, $adapter, $this->processInfo['paramPrefix'] . 'join')
? $this->processExpression($join['on'], $platform, $adapter, $this->processInfo['paramPrefix'] . 'join' . ($j+1) . 'part')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need a comment in the code explaining what is happening with that last argument -- what it's creating, and why -- so that others coming in later know why it's there.

* added commentary on the processExpression() call within processJoins()
weierophinney added a commit that referenced this pull request Sep 25, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants