From: Wez Furlong Date: Sun, 13 Feb 2005 04:00:22 +0000 (+0000) Subject: it's only an error in emulation mode; rewrite happens in prepare, which X-Git-Tag: RELEASE_0_2_3~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fc51fd11b69de6a8f700bdf39fd6206315db7872;p=php it's only an error in emulation mode; rewrite happens in prepare, which happens before bindParam --- diff --git a/ext/pdo/pdo_sql_parser.re b/ext/pdo/pdo_sql_parser.re index fe1ff4aa81..68d6785362 100644 --- a/ext/pdo/pdo_sql_parser.re +++ b/ext/pdo/pdo_sql_parser.re @@ -138,7 +138,7 @@ PDO_API int pdo_parse_params(pdo_stmt_t *stmt, char *inquery, int inquery_len, params = stmt->bound_params; /* Do we have placeholders but no bound params */ - if (bindno && !params) { + if (bindno && !params && stmt->supports_placeholders == PDO_PLACEHOLDER_NONE) { pdo_raise_impl_error(stmt->dbh, stmt, "HY093", "no parameters were bound" TSRMLS_CC); ret = -1; goto clean_up;