Permalink
Browse files

added before/after example

  • Loading branch information...
1 parent 4cc70c1 commit 9fcd78db1f61e80e2d4f0a9170d3aa8ce5f4e2d5 @schmittjoh schmittjoh committed Jul 25, 2012
Showing with 13 additions and 0 deletions.
  1. +13 −0 UPGRADE
View
13 UPGRADE
@@ -9,6 +9,19 @@ information such as the executed SQL statement, and any bound parameters.
If you want to retrieve the driver specific exception, you can retrieve it by calling the
``getPrevious()`` method on DBALException.
+Before:
+
+ catch(\PDOException $ex) {
+ // ...
+ }
+
+After:
+
+ catch(\Doctrine\DBAL\DBALException $ex) {
+ $pdoException = $ex->getPrevious();
+ // ...
+ }
+
## Doctrine\DBAL\Connection#setCharsetSQL() removed
This method only worked on MySQL and it is considered unsafe on MySQL to use SET NAMES UTF-8 instead

0 comments on commit 9fcd78d

Please sign in to comment.