diff options
author | Wez Furlong <wez@php.net> | 2005-02-13 06:29:35 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2005-02-13 06:29:35 +0000 |
commit | 0da6a84edfdcbd264d9ad0f562fe4c2566ee9e62 (patch) | |
tree | 052e3d757685388cbb1a5ac4adad97544e4d6265 /ext/pdo/php_pdo_driver.h | |
parent | 2a32b478f9cebbaa1e651749a935363c9589fc3c (diff) | |
download | php-git-0da6a84edfdcbd264d9ad0f562fe4c2566ee9e62.tar.gz |
implement mapping of :name to ? parameters for drivers that only support ?
placeholders.
The current restriction is that you may not use the same named parameter
more than one in a given query, as there is a danger of scary things happen
with the zval if it gets bound multiple times.
Diffstat (limited to 'ext/pdo/php_pdo_driver.h')
-rwxr-xr-x | ext/pdo/php_pdo_driver.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/pdo/php_pdo_driver.h b/ext/pdo/php_pdo_driver.h index 465be2e518..fea279afc7 100755 --- a/ext/pdo/php_pdo_driver.h +++ b/ext/pdo/php_pdo_driver.h @@ -35,7 +35,7 @@ struct pdo_bound_param_data; # define FALSE 0 #endif -#define PDO_DRIVER_API 20050206 +#define PDO_DRIVER_API 20050213 enum pdo_param_type { PDO_PARAM_NULL, @@ -502,6 +502,8 @@ struct _pdo_stmt_t { /* keep track of bound input parameters. Some drivers support * input/output parameters, but you can't rely on that working */ HashTable *bound_params; + /* When rewriting from named to positional, this maps positions to names */ + HashTable *bound_param_map; /* keep track of PHP variables bound to named (or positional) columns * in the result set */ HashTable *bound_columns; |