PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Database » MDB_QueryTool » Bug #10246

Consecutive calls to setWhere don't work

Details

Doc Bug #10246Consecutive calls to setWhere don't work
Submitted2007-03-02 16:37 UTC
Fromchris dot ramakers at gmail dot com
Assignedquipo
StatusClosed
PackageMDB_QueryTool
PHP Version4.4.3
Roadmaps(Not assigned)

Comments

[2007-03-02 16:37 UTC] chris dot ramakers at gmail dot com

Description:
------------
In to documentation there is a reference to consecutive setWhere() calls to create one big where statement but actually the addWhere() method should be used to create big where statements

Test script:
---------------
$this->addWhere("username = '".$login."'");
$this->addWhere("password = '".md5($password)."'");

Expected result:
----------------
WHERE username = 'Blabla' AND password = 'az2e1a65ze13aze13a2z1ea365z1e3a2z1e6a5z1e3a2ze'

Actual result:
--------------
WHERE password = 'az2e1a65ze13aze13a2z1ea365z1e3a2z1e6a5z1e3a2ze'