PEAR is archived and read-only

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

Home » Database » MDB » Bug #670

fetchCol error on empty result

Details

Submitted2004-02-02 23:15 UTC
Fromths at php dot net
Assignedlsmith
StatusClosed
PackageMDB
PHP Version4.3.4
OSWinXP
Roadmaps(Not assigned)

Comments

[2004-02-02 23:15 UTC] ths at php dot net

Description:
------------
fetchCol() trows an MDB_ERROR_TRUNCATED when the query should returns an empty resultset.

Maybe because fetchinto returns as first row:

array(1) { [0]=> NULL } ??

latest CVS version, mySQL.

[2004-06-18 15:35 UTC] smith at backendmedia dot com

yes thats the expected behavoir. anything else would require special attention which would make the common case slower. This issue is not related to fetchCol obviously so if you have any further comments please open a new bug report.