News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Internet Super Hero Blog:
Is PDOFETCH_UNIQUE broken by design?
March 07, 2008 @ 10:25:00

On the Internet Super Hero blog, there's a post that looks at how PDO is implemented in PHP and wonders if the PDO::FETCH_UNIQUE constant is broken (as something to fix before even considering the move to PDO2).

I spent quite a lot of time comparing the different behaviours of the various drivers in the hope I could find out how PDO drivers are supposed to work. The PDO documentation and the specification do not cover each and every detail. PDO really needs some love...

He picks out the FETCH_UNIQUE constant as one that needs a little work and tries to track down exactly what it's doing. One issue he found was that it requires combination with other flags to make the unique part of it work correctly (like FETCH_OBJ or FETCH_COLUMN). He works through several examples, both ones that apply the unique call and others that don't, comparing the results.

0 comments voice your opinion now!
pdo fetchunique unique broken testing results


blog comments powered by Disqus

Similar Posts

DevShed: Customizing WordPress Search Results to Sort by Title

IBM developerWorks: U2 PDO Driver Tutorial, Parts 1 & 2

Ilia Alshanetsky's Blog: 5.2.5RC1 Released for Testing

Zumba Engineering Blog: Mongounit Project Open Sourced

InternetNews.com: Is PHP The Cure For The 'Broken' Web?


Community Events

Don't see your event here?
Let us know!


framework performance laravel interview version opinion community extension introduction php7 symfony2 api library series conference example podcast voicesoftheelephpant release install

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework