Lukas Smith wrote:

Nicholas Telford wrote:

What I'm proposing is to allow PDO::query() to return a subclass of PDOStatement. This would allow abstractions to tailor the result set to their own needs while not (in theory) being too complicated to implement.

My initial idea involves passing an object that is a subclass of PDOStatement into PDO:query as a second parameter, then all that would be needed to get it to return a custom result set would be something like this:


http://oss.backendmedia.com/index.php?area=PDO&page=FAQ

read the last item over there.

Marcus (IIRC) is planning on making this less clumsy as right now you have to repeatedly specifiy the statement class you want AFAIK.

regards,
Lukas


Ah thank you, I understand that PDO is still under development, I thought I may as well mention this before the cement dries so to speak.

Good to see that this has already been thought of and an implementation already exists (even if it's not ideal).

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to