wez             Thu Jul  7 12:24:52 2005 EDT

  Modified files:              
    /php-src/ext/pdo    php_pdo_driver.h 
  Log:
  add an attribute for returning the driver name
  
  
http://cvs.php.net/diff.php/php-src/ext/pdo/php_pdo_driver.h?r1=1.59&r2=1.60&ty=u
Index: php-src/ext/pdo/php_pdo_driver.h
diff -u php-src/ext/pdo/php_pdo_driver.h:1.59 
php-src/ext/pdo/php_pdo_driver.h:1.60
--- php-src/ext/pdo/php_pdo_driver.h:1.59       Sat Jul  2 23:49:44 2005
+++ php-src/ext/pdo/php_pdo_driver.h    Thu Jul  7 12:24:51 2005
@@ -16,7 +16,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: php_pdo_driver.h,v 1.59 2005/07/03 03:49:44 wez Exp $ */
+/* $Id: php_pdo_driver.h,v 1.60 2005/07/07 16:24:51 wez Exp $ */
 
 #ifndef PHP_PDO_DRIVER_H
 #define PHP_PDO_DRIVER_H
@@ -44,7 +44,7 @@
 # define FALSE 0
 #endif
 
-#define PDO_DRIVER_API 20050702
+#define PDO_DRIVER_API 20050707
 
 enum pdo_param_type {
        PDO_PARAM_NULL,
@@ -126,6 +126,7 @@
        PDO_ATTR_STATEMENT_CLASS,       /* array(classname, array(ctor_args)) 
to specify the class of the constructed statement */
        PDO_ATTR_FETCH_TABLE_NAMES, /* include table names in the column names, 
where available */
        PDO_ATTR_FETCH_CATALOG_NAMES, /* include the catalog/db name names in 
the column names, where available */
+       PDO_ATTR_DRIVER_NAME,             /* name of the driver (as used in the 
constructor) */
 
        /* this defines the start of the range for driver specific options.
         * Drivers should define their own attribute constants beginning with 
this
@@ -453,6 +454,8 @@
 
        /* driver specific "class" methods for the dbh and stmt */
        HashTable *cls_methods[PDO_DBH_DRIVER_METHOD_KIND__MAX];
+
+       pdo_driver_t *driver;
 };
 
 /* describes a column */

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to