Zend Framework

Error binding params

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 1.6.0RC2
  • Fix Version/s: None
  • Component/s: Zend_Db
  • Labels:
    None

Description

$str = "foo?bo'o";

$select->where("my_column LIKE ?", $str);

throws 'Zend_Db_Statement_Exception' with message 'SQLSTATE[HY093]: Invalid parameter number: no parameters were bound

Issue Links

Activity

Hide
Niko Kivelä added a comment -

This bug is cloned and discussed in issue ZF-1343. Bug seems to be PDO related and fixed in PHP version 5.2.9 according to comments 29182 and 29184

Show
Niko Kivelä added a comment - This bug is cloned and discussed in issue ZF-1343. Bug seems to be PDO related and fixed in PHP version 5.2.9 according to comments 29182 and 29184
Hide
Satoru Yoshida added a comment -

It duplicates ZF-1343.
I will be happy if you would comment on the issue.

Show
Satoru Yoshida added a comment - It duplicates ZF-1343. I will be happy if you would comment on the issue.

People

Vote (0)
Watch (3)

Dates

  • Created:
    Updated:
    Resolved: