summaryrefslogtreecommitdiff
path: root/ext/pdo/php_pdo_driver.h
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2005-07-07 16:24:51 +0000
committerWez Furlong <wez@php.net>2005-07-07 16:24:51 +0000
commit294a44a9cb9a7c91c2798b7117209da0654a1b1c (patch)
tree456ccf49ca2b9d436328ebaa9a0224f2f889b77a /ext/pdo/php_pdo_driver.h
parentf51e1c20642590847a83f9a3a20b220a83bdea11 (diff)
downloadphp-git-294a44a9cb9a7c91c2798b7117209da0654a1b1c.tar.gz
add an attribute for returning the driver name
Diffstat (limited to 'ext/pdo/php_pdo_driver.h')
-rwxr-xr-xext/pdo/php_pdo_driver.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/pdo/php_pdo_driver.h b/ext/pdo/php_pdo_driver.h
index 53cf2bcc8f..4857953bde 100755
--- a/ext/pdo/php_pdo_driver.h
+++ b/ext/pdo/php_pdo_driver.h
@@ -44,7 +44,7 @@ PDO_API char *php_pdo_int64_to_str(pdo_int64_t i64 TSRMLS_DC);
# 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 @@ enum pdo_attribute_type {
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 @@ struct _pdo_dbh_t {
/* 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 */