diff options
author | Wez Furlong <wez@php.net> | 2005-07-12 03:18:17 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2005-07-12 03:18:17 +0000 |
commit | 1bd3483dea1226cedf25e51ddd8f56cb7483e257 (patch) | |
tree | 0d5d07ec074a172f9ae53055b70cd00c790e738a /ext/pdo_oci/oci_driver.c | |
parent | 4f22ac0cdde49f24a12e9b7e980c7e9fc08ac5ae (diff) | |
download | php-git-1bd3483dea1226cedf25e51ddd8f56cb7483e257.tar.gz |
fix bug when query was rewritten from ? to :name
Diffstat (limited to 'ext/pdo_oci/oci_driver.c')
-rwxr-xr-x | ext/pdo_oci/oci_driver.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/pdo_oci/oci_driver.c b/ext/pdo_oci/oci_driver.c index c393d24aed..50113c4790 100755 --- a/ext/pdo_oci/oci_driver.c +++ b/ext/pdo_oci/oci_driver.c @@ -228,6 +228,7 @@ static int oci_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pd if (ret == 1) { /* query was re-written */ sql = nsql; + sql_len = nsql_len; } else if (ret == -1) { /* couldn't grok it */ strcpy(dbh->error_code, stmt->error_code); |