PDO how to get connection type ?
| From: | Bertrand Mansion | Date: | Sun, 24 Jul 2005 13:09:11 +0000 |
| Subject: | PDO how to get connection type ? | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-2654@lists.php.net to get a copy of this message | ||
Hi,
Is there a way to get the connection type (or driver name) from a PDO object ?
I need this info as I have a class that uses a PDO connection and depending on
the type of the database being used, will perform different SQL queries.
Thanks,
Bertrand Mansion
Mamasam