ZF-52: Extra/repeated column in fetchAssoc() result-set

Issue Type: Bug Created: 2006-06-20T01:05:24.000+0000 Last Updated: 2007-07-05T14:43:08.000+0000 Status: Resolved Fix version(s): - 0.8.0 (21/Feb/07)

Reporter: Zend Framework (zend_framework) Assignee: Bill Karwin (bkarwin) Tags: - Zend_Db

Related issues: Attachments:


I notice the fetchAssoc() is retrieving with one extra/repeated column in the values: [1] => Array


        [ID] => 1 [repeated] [Name] => Zend Framework


Whereas, PEAR DB result-set is: [1] => Array


        [Name] => Zend Framework


[where ID is the key while values are the remaining columns; ID is not repeated in the values]


Posted by Bill Karwin (bkarwin) on 2006-11-13T15:14:33.000+0000

Changing fix version to 0.8.0.

Posted by Bill Karwin (bkarwin) on 2006-12-29T15:53:59.000+0000

It is appropriate to return all the columns when fetching a row.

The primary key may be a column not called id, or it may be a compound primary key, etc.

Posted by Bill Karwin (bkarwin) on 2006-12-29T15:54:31.000+0000

Reopening so I can close it as Not an Issue.

Posted by Bill Karwin (bkarwin) on 2006-12-29T15:54:43.000+0000

Not an issue.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.