Hotfix/db sql nested expressions #2687

wants to merge 2 commits into


None yet

2 participants


Fix for #2521.

  • This now allows expressions within expressions:
$expression = new Predicate\Operator('release_date', '=', new Expression('FROM_UNIXTIME(?)', 100000000));
  • Previous internal demarcation of the type being TYPE_SELECT is deprecated in favor of TYPE_VALUE. (This is an undocumented and internal only API change).
  • Expression objects now accept scalar|array instead of string|array
ralphschindler added some commits Oct 3, 2012
@ralphschindler ralphschindler Zend\Db\Sql:
* Fixed AbstractSql to handle nested expressions
* deprecated the internal feature of tagging value types as SELECT
@ralphschindler ralphschindler Zend\Db\Sql\Expression & Zend\Db\Sql\Predicate\*
* Expressions now take scalar or array (as opposed to string or array)
* Test added for expression within expression handling
@weierophinney weierophinney was assigned Oct 8, 2012
@weierophinney weierophinney added a commit that referenced this pull request Oct 8, 2012
@weierophinney weierophinney Merge branch 'hotfix/2687' into develop
Forward port #2687
@weierophinney weierophinney added a commit that closed this pull request Oct 8, 2012
@weierophinney weierophinney Merge branch 'hotfix/2687'
Close #2687
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment