ZF-105: Zend_Db_Select::bind() missing? (TRAC#111)

Issue Type: Bug Created: 2006-06-21T21:54:44.000+0000 Last Updated: 2007-07-05T14:44:28.000+0000 Status: Closed Fix version(s): - 0.1.5 (11/Jul/06)

Reporter: Zend Framework (zend_framework) Assignee: Gavin (gavin) Tags: - Zend_Db

Related issues: Attachments: - Select-bind-patch.diff


Documentation of Zend_Db_Select refer to bind() method, which seems to be not exists.

<pre class="highlight">
     * Adds a HAVING condition to the query by AND.
     * [...]
     * Array values are quoted and comma-separated.
     * // simplest but non-secure
     * $select->having("COUNT(id) = $count");
     * // secure
     * $select->having('COUNT(id) = ?', $count);
     * // equivalent security with named binding
     * $select->having('COUNT(id) = :count');
     * $select->bind('count', $count); // <---
     * [...]

The same story with where() documentation.


Posted by Mislav Marohni? (mislav) on 2006-07-07T05:41:38.000+0000

Obviously something was planned for binding values directly into the Select instance, but that was never implemented (maybe abandoned?).

This patch fixes the API docs.

Posted by Gavin (gavin) on 2006-07-07T17:12:21.000+0000

Applied patch from Mislav Marohnic to resolve ZF-105 by simply removing documentation for not-yet-implemented features. See the FishEye link for more information.

Posted by Jayson Minard (jayson) on 2006-07-11T11:54:37.000+0000

0.1.5 released

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.