#1339 [NEW]: PEAR::DB select distinct ( text field ) Error

From: Date: Tue, 04 May 2004 20:07:13 +0000
Subject: #1339 [NEW]: PEAR::DB select distinct ( text field ) Error
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-28780@lists.php.net to get a copy of this message
From: tingham at coalmarch dot com Operating system: OSX PHP version: 4.3.2 PHP Bug Type: Bug System Bug description: PEAR::DB select distinct ( text field ) Error Description: ------------ Selecting distinct( category_name ) from a table containing that field as type varchar(255) produces an error on either query or getAssoc. This same query runs fine in mysql terminal. Reproduce code: --------------- create table products( product_id INT NOT NULL AUTO_INCREMENT, product_category varchar(255), product_name varchar(255) PRIMARY KEY(product_id) ); <? $que = "select distinct( product_category ) from products;"; $rs = /../->query($que); $rs is error. Expected result: ---------------- List of results from mysql. Actual result: -------------- Output to a <select> returns something of the form: " D s " -- Edit bug report at http://pear.php.net/bugs/bug.php?id=1339&edit=1 --

« previous php.pear.dev (#28780) next »