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 » Bug #6131

pgsql - simpleQuery - isManip Bug

Details

Submitted2005-12-02 13:07 UTC
Fromzeth at gmx dot net
StatusDuplicate
PackageDB
PHP Version4.4.1
OSall
Roadmaps(Not assigned)

Comments

[2005-12-02 13:07 UTC] zeth at gmx dot net

Description:
------------
function simpleQuery($query)
{
$ismanip = DB::isManip($query);
...

doesnt finds everytime No manipulation queries,
defines them as ismanip=1 and fails from other
functions.

solution:

$ismanip = (preg_match('/^\s*\(*\s*(SELECT|FETCH|EXPLAIN|SHOW)\s/si', $query))?0:1;