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 » MDB_QueryTool » Bug #9963

Quoting problem with COUNT(*)

Details

Submitted2007-01-29 10:14 UTC
Fromlukas dot ruetz at gmx dot at
Assignedquipo
StatusClosed
PackageMDB_QueryTool
PHP Version5.2.0
OSSuSE Linux (2.6.18)
Roadmaps(Not assigned)

Comments

[2007-01-29 10:14 UTC] lukas dot ruetz at gmx dot at

Description:
------------
The new version 1.2.0 quotes a COUNT(*) like
SELECT "COUNT(*") FROM ..

Test script:
---------------
$qt->setSelect( 'COUNT(*)' );
$qt->getAll();

Actual result:
--------------
MDB_QueryTool::_doQuery: [Error message: Could not execute statement] [Last executed query: SELECT "COUNT(*") FROM mytable ] [Native message: FEHLER: Error »Syntaxerror« at »)« char 17] (2262)