History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: ZF-105
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Gavin
Reporter: Zend Framework
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Google issue summary
Zend Framework

Zend_Db_Select::bind() missing? (TRAC#111)

Created: 21/Jun/06 09:54 PM   Updated: 05/Jul/07 02:44 PM
Component/s: Zend_Db
Affects Version/s: 0.1.5
Fix Version/s: 0.1.5

Time Tracking:
Not Specified

File Attachments: 1. File Select-bind-patch.diff (2 kb)



 Description  « Hide
http://framework.zend.com/developer/ticket/111

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

/**
     * Adds a HAVING condition to the query by AND.
     * [...]
     * Array values are quoted and comma-separated.
     *
     * <code>
     * // 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); // <---
     * </code>
     * [...]
     */

The same story with where() documentation.



 All   Comments   Work Log   Change History   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
Mislav Marohni? - 07/Jul/06 05:41 AM
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.


Gavin - 07/Jul/06 05:12 PM
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.

Jayson Minard - 11/Jul/06 11:54 AM
0.1.5 released