Re: Re: Please test PDO

From: Date: Tue, 15 Feb 2005 00:47:09 +0000
Subject: Re: Re: Please test PDO
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-14944@lists.php.net to get a copy of this message
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 <cschneid@cschneid.com> 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.


« previous php.internals (#14944) next »