Re: [PHP-DEV] [patch] PDO_FETCH_KEYS

2007-11-27 Thread Hans-Peter Oeri
Hi! Wez Furlong wrote: > What purpose does this serve exactly? PDO::FETCH_KEYS is supposed to be a "generalized" form of the existing PDO::FETCH_KEY_PAIR. The latter is limited to two column results and organises it into key=>value. PDO::FETCH_2D is an IMHO better strategy than the existing ATT

Re: [PHP-DEV] [patch] PDO_FETCH_KEYS

2007-11-27 Thread Wez Furlong
What purpose does this serve exactly? Why do we need to allocate an empty string for every database connection? Why do we need this in the core? There's a lot of manipulation being done here that is better suited to happen in PHP script land where it's safer and easier to maintain. --Wez.

[PHP-DEV] [patch] PDO_FETCH_KEYS

2007-11-24 Thread Hans-Peter Oeri
Hi! I discovered that PDO::FETCH_KEY_PAIR does not work as documented. Documented is: 'Fetch into an array where the 1st column is a key and all subsequent columns are values' Actually, all but two column result sets throw an error... Then I thought about generalizing the fetch mode. Have 1..n '