PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Database » DB_QueryTool » Bug #4189

update() quote even if "raw" option is set

Details

Submitted2005-04-20 15:46 UTC
Frommarcin dot krzyzanowski at gmail dot com
Assignedquipo
StatusClosed
PackageDB_QueryTool
PHP Version5.0.2
OSMacOSX
Roadmaps(Not assigned)

Comments

[2005-04-20 15:46 UTC] marcin dot krzyzanowski at gmail dot com

Description:
------------
QueryTool/Query.php

function update($newData)
{
$query = array();
// do only set the 'where' part in $query, if a
primary column is given
// if not the default 'where' clause is used
if (isset($newData[$this->primaryCol])) {
$query['where'] = $this-
>primaryCol.'='.$this->db->quoteSmart($newData[$this-
>primaryCol]);
(..)

this quote "where" clause even if "raw" option is set.

Expected result:
----------------
do not quote if raw is enabled

Actual result:
--------------
quote