mirror of
https://github.com/php/php-src.git
synced 2024-09-27 04:47:22 +00:00
MFB (1.82.2.31.2.17.2.10): "Added a warning message on pdo::exec() failure in the event of an empty query"
This commit is contained in:
parent
8ac82de068
commit
2a2653a347
@ -930,6 +930,7 @@ static PHP_METHOD(PDO, exec)
|
||||
}
|
||||
|
||||
if (!statement_len) {
|
||||
pdo_raise_impl_error(dbh, NULL, "HY000", "trying to execute an empty query" TSRMLS_CC);
|
||||
RETURN_FALSE;
|
||||
}
|
||||
PDO_DBH_CLEAR_ERR();
|
||||
|
Loading…
Reference in New Issue
Block a user