mirror of
https://github.com/php/php-src.git
synced 2024-12-11 19:04:38 +08:00
it's only an error in emulation mode; rewrite happens in prepare, which
happens before bindParam
This commit is contained in:
parent
ab9821d8c3
commit
fc51fd11b6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user