From: Wez Furlong Date: Tue, 12 Jul 2005 03:18:17 +0000 (+0000) Subject: fix bug when query was rewritten from ? to :name X-Git-Tag: php-5.1.0b3~38 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1bd3483dea1226cedf25e51ddd8f56cb7483e257;p=php fix bug when query was rewritten from ? to :name --- 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);