it's only an error in emulation mode; rewrite happens in prepare, which

happens before bindParam
This commit is contained in:
Wez Furlong 2005-02-13 04:00:22 +00:00
parent ab9821d8c3
commit fc51fd11b6

View File

@ -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;