That's also something of a hack (PDO core doesn't and shouldn't know
about mysql specific features).

It's better to have a generic mechanism for this, such as the
"interfaces" idea I mentioned a couple of years back.

I don't think there will be time to wedge that into 5.1 though :-/

--Wez.


On Tue, 15 Feb 2005 08:47:09 +0800, Alan Knowles <[EMAIL PROTECTED]> wrote:
> It would be usefull if there was a shared struct for this in pdo core: eg.
> 
> (in /ext/pdo/php_pdo_drivers_extras.h)
> 
> (mysql_do_something_ptr *) mysql_do_something(pdo_stmt_t *,char *
> an_argument)
> 
> pdo_driver_extras_mysql {
>      mysql_do_something_ptr               *mysql_do_something,
>      ....
> }
> 
> So that other extensions can call these methods without having to link
> to the specific backend, or kludge through call_user_function or something)
> 
> Regards
> Alan
> 
> 
> Wez Furlong wrote:
> 
> >Depends on the functionality.
> >
> >Drivers are free(*) to implement driver specific methods on the PDO
> >and PDOStatement objects, provided they are "namespaced"
> >
> >eg:
> >
> >$db->mysqlDoSomething()
> >
> >would be a mysql driver specific feature.
> >
> >More generic attributes can be accessed or set via the get/setAttribute 
> >methods.
> >
> >(*) while they are "free" to do so, it's better to discuss the feature
> >first to see if it can be made into a more generic feature of PDO
> >itself.
> >
> >-Wez.
> >
> >On Mon, 14 Feb 2005 23:34:21 +0100, Christian Schneider
> ><[EMAIL PROTECTED]> wrote:
> >
> >
> >>Excuse my ignorance, maybe I missed the answer to Lester's question:
> >>What's the proposed way of accessing the DB-specific functionality once
> >>PDO is there? Is everything available through SQL statements or
> >>get/srcAttribute? After a first look at the MySQL functions my guess is
> >>that that's the case. At least I can't see anything I need which I
> >>couldn't reach that way.
> >>
> >>
> >
> >
> >
> 
>

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

Reply via email to