Browse Source

ZF-8589: cast PDO error code to int before re-throwing

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@19834 44c647ce-9c0f-0410-b52a-842ac1e357ba
matthew 16 years ago
parent
commit
33278f3d20
1 changed files with 1 additions and 1 deletions
  1. 1 1
      library/Zend/Db/Statement/Pdo.php

+ 1 - 1
library/Zend/Db/Statement/Pdo.php

@@ -231,7 +231,7 @@ class Zend_Db_Statement_Pdo extends Zend_Db_Statement implements IteratorAggrega
             }
         } catch (PDOException $e) {
             require_once 'Zend/Db/Statement/Exception.php';
-            throw new Zend_Db_Statement_Exception($e->getMessage(), $e->getCode(), $e);
+            throw new Zend_Db_Statement_Exception($e->getMessage(), (int) $e->getCode(), $e);
         }
     }