Hotfix/db sql nested expressions #2687

wants to merge 2 commits into


None yet
2 participants

ralphschindler commented Oct 5, 2012

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

* Fixed AbstractSql to handle nested expressions
* deprecated the internal feature of tagging value types as SELECT
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

@ghost ghost assigned weierophinney Oct 8, 2012

weierophinney added a commit that referenced this pull request Oct 8, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment