mattwil         Wed Dec  3 00:08:38 2008 UTC

  Modified files:              
    /php-src/ext/pdo    pdo_dbh.c 
  Log:
  MFB (1.82.2.31.2.17.2.10): "Added a warning message on pdo::exec() failure in 
the event of an empty query"
  
http://cvs.php.net/viewvc.cgi/php-src/ext/pdo/pdo_dbh.c?r1=1.157&r2=1.158&diff_format=u
Index: php-src/ext/pdo/pdo_dbh.c
diff -u php-src/ext/pdo/pdo_dbh.c:1.157 php-src/ext/pdo/pdo_dbh.c:1.158
--- php-src/ext/pdo/pdo_dbh.c:1.157     Thu Nov 27 19:02:44 2008
+++ php-src/ext/pdo/pdo_dbh.c   Wed Dec  3 00:08:37 2008
@@ -18,7 +18,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: pdo_dbh.c,v 1.157 2008/11/27 19:02:44 dmitry Exp $ */
+/* $Id: pdo_dbh.c,v 1.158 2008/12/03 00:08:37 mattwil Exp $ */
 
 /* The PDO Database Handle Class */
 
@@ -930,6 +930,7 @@
        }
 
        if (!statement_len) {
+               pdo_raise_impl_error(dbh, NULL, "HY000",  "trying to execute an 
empty query" TSRMLS_CC);
                RETURN_FALSE;
        }
        PDO_DBH_CLEAR_ERR();



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to