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:
Matt Wilmas 2008-12-03 00:08:37 +00:00
parent 8ac82de068
commit 2a2653a347

View File

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