diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2008-04-22 13:01:45 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2008-04-22 13:01:45 +0000 |
commit | 3bcf8a3d000cb391355eaa634e98cf098c0ccfe9 (patch) | |
tree | 209b0c2e741667961820c11154dfe7512283f602 /ext/pdo | |
parent | 4c4542e0d553345be6b93d517bbc0e7d721b6d1e (diff) | |
download | php-git-3bcf8a3d000cb391355eaa634e98cf098c0ccfe9.tar.gz |
Added a warning message on pdo::exec() failure in the event of an empty query
Diffstat (limited to 'ext/pdo')
-rwxr-xr-x | ext/pdo/pdo_dbh.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c index 20b7f22bb6..5ed7c98451 100755 --- a/ext/pdo/pdo_dbh.c +++ b/ext/pdo/pdo_dbh.c @@ -922,6 +922,7 @@ static PHP_METHOD(PDO, exec) } if (!statement_len) { + pdo_raise_impl_error(dbh, NULL, "HY000", "trying to execute and empty query" TSRMLS_CC); RETURN_FALSE; } PDO_DBH_CLEAR_ERR(); |