summaryrefslogtreecommitdiff
path: root/ext/pdo/php_pdo_driver.h
diff options
context:
space:
mode:
authorJohannes Schlüter <johannes@php.net>2008-07-21 13:09:28 +0000
committerJohannes Schlüter <johannes@php.net>2008-07-21 13:09:28 +0000
commitbe0793d2e7892a394c3d7105e157ede37d692400 (patch)
tree3f613ef2beddf8dfc099250fd58efcc90b978a9e /ext/pdo/php_pdo_driver.h
parentc6c238c772b2762c51893c22ba8ef3f2d1b6f740 (diff)
downloadphp-git-be0793d2e7892a394c3d7105e157ede37d692400.tar.gz
MFH: Add mysqlnd support for PDO_mysql, fixes at least bug#41997,#42499,
pecl#12794, pecl#12401 # Running the tests: # (Note: Doesn't work currnetly on HEAD, see: # http://news.php.net/php.qa/64378) # # PDO_MYSQL_TEST_DSN - DSN # For example: mysql:dbname=test;host=localhost;port=3306 # # PDO_MYSQL_TEST_HOST - database host # PDO_MYSQL_TEST_DB - database (schema) name # PDO_MYSQL_TEST_SOCKET - database server socket # PDO_MYSQL_TEST_ENGINE - storage engine to use # PDO_MYSQL_TEST_USER - database user # PDO_MYSQL_TEST_PASS - database user password # PDO_MYSQL_TEST_CHARSET - database charset # # NOTE: if any of PDO_MYSQL_TEST_[HOST|DB|SOCKET|ENGINE|CHARSET] is # part of PDO_MYSQL_TEST_DSN, the values must match. That is, for example, # for PDO_MYSQL_TEST_DSN = mysql:dbname=test you MUST set PDO_MYSQL_TEST_DB=test.
Diffstat (limited to 'ext/pdo/php_pdo_driver.h')
-rwxr-xr-xext/pdo/php_pdo_driver.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/ext/pdo/php_pdo_driver.h b/ext/pdo/php_pdo_driver.h
index b252ef022e..605591463e 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 20060511
+#define PDO_DRIVER_API 20080721
enum pdo_param_type {
PDO_PARAM_NULL,
@@ -67,7 +67,12 @@ enum pdo_param_type {
PDO_PARAM_STMT, /* hierarchical result set */
/* get_col ptr should point to a zend_bool */
- PDO_PARAM_BOOL
+ PDO_PARAM_BOOL,
+
+ /* get_col ptr should point to a zval*
+ and the driver is responsible for adding correct type information to get_column_meta()
+ */
+ PDO_PARAM_ZVAL
};
/* magic flag to denote a parameter as being input/output */