diff options
| author | Wez Furlong <wez@php.net> | 2005-07-08 15:24:21 +0000 |
|---|---|---|
| committer | Wez Furlong <wez@php.net> | 2005-07-08 15:24:21 +0000 |
| commit | ab1ba644dbf09da5f7683d1e76a1ac4b56690f30 (patch) | |
| tree | 04ea73ba2b8b0aec411b1e3b23dd9deaa3da71fa /ext/pdo/php_pdo_driver.h | |
| parent | 057e1973c7bdca7991ee9906aa3cd5423ffa10ff (diff) | |
| download | php-git-ab1ba644dbf09da5f7683d1e76a1ac4b56690f30.tar.gz | |
add a bit of a hack to cater for pgsql prepared statements.
These are effectively named statements with strong constraints on the naming
format. We cater for this in a fairly generic way: allow a driver to replace
the format string we use to generate names from positional parameters. In
addition, if that format is set, we always force a rewrite from regular names
to the strongly enforced names.
Diffstat (limited to 'ext/pdo/php_pdo_driver.h')
| -rwxr-xr-x | ext/pdo/php_pdo_driver.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/pdo/php_pdo_driver.h b/ext/pdo/php_pdo_driver.h index 24f885b1be..86bd35f66d 100755 --- a/ext/pdo/php_pdo_driver.h +++ b/ext/pdo/php_pdo_driver.h @@ -578,6 +578,10 @@ struct _pdo_stmt_t { } func; zval *into; } fetch; + + /* used by the query parser for driver specific + * parameter naming (see pgsql driver for example) */ + const char *named_rewrite_template; }; /* call this in MINIT to register your PDO driver */ |
