Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Zend\Db\Sql\Select:

* added commentary on the processExpression() call within processJoins()
  • Loading branch information...
commit ef52956eb85163b76f2be2b1583da054841040b8 1 parent 7653f74
@ralphschindler authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  library/Zend/Db/Sql/Select.php
View
1  library/Zend/Db/Sql/Select.php
@@ -619,6 +619,7 @@ protected function processJoins(PlatformInterface $platform, Adapter $adapter =
? $platform->quoteIdentifier(current($join['name'])) . ' AS ' . $platform->quoteIdentifier(key($join['name']))
: $platform->quoteIdentifier($join['name']);
// on expression
+ // note: for Expression objects, pass them to processExpression with a prefix specific to each join (used for named parameters)
$joinSpecArgArray[$j][] = ($join['on'] instanceof ExpressionInterface)
? $this->processExpression($join['on'], $platform, $adapter, $this->processInfo['paramPrefix'] . 'join' . ($j+1) . 'part')
: $platform->quoteIdentifierInFragment($join['on'], array('=', 'AND', 'OR', '(', ')', 'BETWEEN')); // on
Please sign in to comment.
Something went wrong with that request. Please try again.