iliaa           Sun Dec  2 21:00:06 2007 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/ext/pdo_pgsql/tests        bug36727.phpt 
    /php-src/ext/pdo_pgsql      pgsql_statement.c 
    /php-src    NEWS 
  Log:
  
  MFB: Fixed bug #43457 (Prepared statement with incorrect parms doens't
  throw exception with pdo_pgsql driver)
  
http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_pgsql/tests/bug36727.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u
Index: php-src/ext/pdo_pgsql/tests/bug36727.phpt
diff -u php-src/ext/pdo_pgsql/tests/bug36727.phpt:1.1.2.1 
php-src/ext/pdo_pgsql/tests/bug36727.phpt:1.1.2.1.2.1
--- php-src/ext/pdo_pgsql/tests/bug36727.phpt:1.1.2.1   Fri Mar 17 22:15:57 2006
+++ php-src/ext/pdo_pgsql/tests/bug36727.phpt   Sun Dec  2 21:00:05 2007
@@ -19,5 +19,6 @@
 echo "Done\n";
 ?>
 --EXPECT--
+Warning: PDOStatement::bindValue(): SQLSTATE[HY093]: Invalid parameter number: 
:test in %s/bug36727.php on line %d
 bool(false)
-Done
+Done
\ No newline at end of file
http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_pgsql/pgsql_statement.c?r1=1.31.2.12.2.8&r2=1.31.2.12.2.9&diff_format=u
Index: php-src/ext/pdo_pgsql/pgsql_statement.c
diff -u php-src/ext/pdo_pgsql/pgsql_statement.c:1.31.2.12.2.8 
php-src/ext/pdo_pgsql/pgsql_statement.c:1.31.2.12.2.9
--- php-src/ext/pdo_pgsql/pgsql_statement.c:1.31.2.12.2.8       Tue Nov 20 
23:12:30 2007
+++ php-src/ext/pdo_pgsql/pgsql_statement.c     Sun Dec  2 21:00:06 2007
@@ -18,7 +18,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: pgsql_statement.c,v 1.31.2.12.2.8 2007/11/20 23:12:30 iliaa Exp $ */
+/* $Id: pgsql_statement.c,v 1.31.2.12.2.9 2007/12/02 21:00:06 iliaa Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -238,7 +238,7 @@
                                                                param->name, 
param->namelen + 1, (void**)&nameptr)) {
                                                        param->paramno = 
atoi(nameptr + 1) - 1;
                                                } else {
-                                                       
pdo_pgsql_error_stmt(stmt, PGRES_FATAL_ERROR, "HY093");
+                                                       
pdo_raise_impl_error(stmt->dbh, stmt, "HY093", param->name TSRMLS_CC);
                                                        return 0;
                                                }
                                        }
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.1021&r2=1.2027.2.547.2.1022&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.1021 php-src/NEWS:1.2027.2.547.2.1022
--- php-src/NEWS:1.2027.2.547.2.1021    Fri Nov 30 00:12:18 2007
+++ php-src/NEWS        Sun Dec  2 21:00:06 2007
@@ -1,6 +1,8 @@
 PHP                                                                        NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? ??? 2008, PHP 5.2.6
+- Fixed bug #43457 (Prepared statement with incorrect parms doens't
+  throw exception with pdo_pgsql driver). (Ilia)
 - Fixed bug #43386 (array_globals not reset to 0 properly on init). (Ilia)
 - Fixed bug #43377 (PHP crashes with invalid argument for DateTimeZone). (Ilia)
 - Fixed bug #43373 (pcntl_fork() should not raise E_ERROR on error). (Ilia)

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

Reply via email to