diff --git a/Doctrine/DBAL/Driver/PDODblib/Connection.php b/Doctrine/DBAL/Driver/PDODblib/Connection.php index 3e004d7..21243d8 100644 --- a/Doctrine/DBAL/Driver/PDODblib/Connection.php +++ b/Doctrine/DBAL/Driver/PDODblib/Connection.php @@ -30,6 +30,13 @@ class Connection extends \Doctrine\DBAL\Driver\PDOConnection implements \Doctrin protected $_pdoTransactionsSupport = null; protected $_pdoLastInsertIdSupport = null; + + public function __construct($dsn, $user = null, $password = null, $options = null) + { + parent::__construct($dsn, $user, $password, $options); + $this->setAttribute(\PDO::ATTR_STATEMENT_CLASS, array(__NAMESPACE__ . '\PDOStatement', array())); + } + /** * @override */ diff --git a/Doctrine/DBAL/Driver/PDODblib/PDOStatement.php b/Doctrine/DBAL/Driver/PDODblib/PDOStatement.php new file mode 100644 index 0000000..122afc4 --- /dev/null +++ b/Doctrine/DBAL/Driver/PDODblib/PDOStatement.php @@ -0,0 +1,39 @@ +