From 2a2653a3472bff3eb82dce25d057b4d4a84cf991 Mon Sep 17 00:00:00 2001 From: Matt Wilmas Date: Wed, 3 Dec 2008 00:08:37 +0000 Subject: [PATCH] MFB (1.82.2.31.2.17.2.10): "Added a warning message on pdo::exec() failure in the event of an empty query" --- ext/pdo/pdo_dbh.c | 1 + 1 file changed, 1 insertion(+) 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(); -- 2.50.1