From: Matt Wilmas Date: Wed, 3 Dec 2008 00:08:37 +0000 (+0000) Subject: MFB (1.82.2.31.2.17.2.10): "Added a warning message on pdo::exec() failure in the... X-Git-Tag: BEFORE_HEAD_NS_CHANGES_MERGE~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2a2653a3472bff3eb82dce25d057b4d4a84cf991;p=php MFB (1.82.2.31.2.17.2.10): "Added a warning message on pdo::exec() failure in the event of an empty query" --- diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c index b0e242ccad..9d4b63de85 100755 --- a/ext/pdo/pdo_dbh.c +++ b/ext/pdo/pdo_dbh.c @@ -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();