Skip to content
Release [2.11.0](https://github.com/doctrine/dbal/milestone/77)

2.11.0
======

- Total issues resolved: **7**
- Total pull requests resolved: **55**
- Total contributors: **8**

Improvement,Prepared Statements,SQL Server,Types,pdo_sqlsrv,sqlsrv
------------------------------------------------------------------

 - [4274: Support ASCII parameter binding](https://github.com/doctrine/dbal/pull/4274) thanks to @gjdanis

Documentation
-------------

 - [4271: Add explanation about implicit indexes](https://github.com/doctrine/dbal/pull/4271) thanks to @greg0ire

Deprecation,Error Handling
--------------------------

 - [4253: Deprecate DBAL\DBALException in favor of DBAL\Exception](https://github.com/doctrine/dbal/pull/4253) thanks to @morozov

CI
--

 - [4251: Setup automatic release workflow](https://github.com/doctrine/dbal/pull/4251) thanks to @greg0ire

Deprecation,Schema Managers
---------------------------

 - [4230: Deprecate the functionality of dropping client connections when dropping a database](https://github.com/doctrine/dbal/pull/4230) thanks to @morozov

Deprecation,Platforms
---------------------

 - [4229: Deprecate more AbstractPlatform methods](https://github.com/doctrine/dbal/pull/4229) thanks to @morozov
 - [4132: Deprecate AbstractPlatform::fixSchemaElementName()](https://github.com/doctrine/dbal/pull/4132) thanks to @morozov

Improvement,Test Suite
----------------------

 - [4215: Remove test group configuration leftovers](https://github.com/doctrine/dbal/pull/4215) thanks to @morozov
 - [4080: Update PHPUnit to 9.2](https://github.com/doctrine/dbal/pull/4080) thanks to @morozov
 - [4079: Forward compatibility with PHPUnit 9.3](https://github.com/doctrine/dbal/pull/4079) thanks to @morozov
 - [3923: Removed performance tests](https://github.com/doctrine/dbal/pull/3923) thanks to @morozov

Deprecation,Schema
------------------

 - [4213: Deprecate the Synchronizer package](https://github.com/doctrine/dbal/pull/4213) thanks to @morozov

Blocker,Improvement,PHP,Test Suite
----------------------------------

 - [4201: Update PHPUnit to 9.3](https://github.com/doctrine/dbal/pull/4201) thanks to @morozov

Blocker,PHP,Test Suite
----------------------

 - [4196: The test suite uses the deprecated at() matcher](https://github.com/doctrine/dbal/issues/4196) thanks to @morozov

Connections,Deprecation,Documentation
-------------------------------------

 - [4175: Additional deprecation note for PrimaryReplicaConnection::query()](https://github.com/doctrine/dbal/pull/4175) thanks to @morozov

Connections,Deprecation,Prepared Statements
-------------------------------------------

 - [4165: Deprecated usage of wrapper components as implementations of driver-level interfaces](https://github.com/doctrine/dbal/pull/4165) thanks to @morozov
 - [4020: Deprecated Connection::project(), Statement::errorCode() and errorInfo()](https://github.com/doctrine/dbal/pull/4020) thanks to @morozov

Connections,Deprecation
-----------------------

 - [4163: Deprecate duplicate and ambiguous wrapper connection methods](https://github.com/doctrine/dbal/pull/4163) thanks to @morozov

Error Handling,Improvement,Types
--------------------------------

 - [4145: Add TypeRegistry constructor](https://github.com/doctrine/dbal/pull/4145) thanks to @morozov

Deprecation,Drivers,Improvement,pdo_mysql,pdo_oci,pdo_pgsql,pdo_sqlite,pdo_sqlsrv
---------------------------------------------------------------------------------

 - [4144: Deprecate classes in Driver\PDO* namespaces](https://github.com/doctrine/dbal/pull/4144) thanks to @morozov

Connections,Documentation,Improvement
-------------------------------------

 - [4139: Mark connection constructors internal](https://github.com/doctrine/dbal/pull/4139) thanks to @morozov

Deprecation,Drivers,Error Handling
----------------------------------

 - [4137: Deprecate driver exception conversion APIs](https://github.com/doctrine/dbal/pull/4137) thanks to @morozov
 - [4112: Deprecate DriverException::getErrorCode()](https://github.com/doctrine/dbal/pull/4112) thanks to @morozov

Configuration,Connections,Deprecation,Error Handling
----------------------------------------------------

 - [4134: Deprecate some DBALException factory methods](https://github.com/doctrine/dbal/pull/4134) thanks to @morozov

Code Style,Documentation
------------------------

 - [4133: Fix more issues introduced by the deprecation of driver classes](https://github.com/doctrine/dbal/pull/4133) thanks to @morozov

BC Break,Drivers,Error Handling,pdo_sqlsrv,sqlsrv
-------------------------------------------------

 - [4131: Restore the PortWithoutHost exception parent class](https://github.com/doctrine/dbal/pull/4131) thanks to @morozov

Code Style,Improvement,Static Analysis
--------------------------------------

 - [4123: Remove the no longer needed error suppressions](https://github.com/doctrine/dbal/pull/4123) thanks to @morozov

Deprecation,Drivers,Error Handling,Improvement
----------------------------------------------

 - [4118: Deprecate ExceptionConverterDriver](https://github.com/doctrine/dbal/pull/4118) thanks to @morozov

Bug,Connections,Improvement,Prepared Statements
-----------------------------------------------

 - [4117: Fixes for the recently introduced driver-level deprecations](https://github.com/doctrine/dbal/pull/4117) thanks to @morozov

Connections,Deprecation,Platform Detection
------------------------------------------

 - [4114: Deprecate ServerInfoAwareConnection#requiresQueryForServerVersion() as an implementation detail](https://github.com/doctrine/dbal/pull/4114) thanks to @morozov

Deprecation,Prepared Statements,SQL Parser,oci8
-----------------------------------------------

 - [4110: Mark non-interface OCI8 driver methods internal](https://github.com/doctrine/dbal/pull/4110) thanks to @morozov

Connections,Deprecation,Drivers,Improvement,Prepared Statements
---------------------------------------------------------------

 - [4100: Deprecate inconsistently and ambiguously named driver-level classes](https://github.com/doctrine/dbal/pull/4100) thanks to @morozov

Connections,Improvement
-----------------------

 - [4092: Remove Connection::$isConnected](https://github.com/doctrine/dbal/pull/4092) thanks to @morozov

Configuration,Connections
-------------------------

 - [4086: Mark Connection::getParams() internal](https://github.com/doctrine/dbal/pull/4086) thanks to @morozov

Bug,Drivers,ibm_db2
-------------------

 - [4085: The IBM DB2 driver Exception class must implement the DriverException interface](https://github.com/doctrine/dbal/pull/4085) thanks to @morozov

PHP
---

 - [4078: Bump PHP requirement to 7.3 as of DBAL 2.11.0](https://github.com/doctrine/dbal/pull/4078) thanks to @morozov

Connections,Databases,Deprecation,Drivers
-----------------------------------------

 - [4068: Deprecate Driver::getDatabase()](https://github.com/doctrine/dbal/pull/4068) thanks to @morozov

Deprecation,Improvement,Portability
-----------------------------------

 - [4061: Deprecated platform-specific portability mode constants](https://github.com/doctrine/dbal/pull/4061) thanks to @morozov

 - [4054: [GH-4052] Deprecate MasterSlaveConnection and rename to PrimaryReplicaConnection](https://github.com/doctrine/dbal/pull/4054) thanks to @beberlei and @albe
 - [4017: Improve help of dbal:run-sql command](https://github.com/doctrine/dbal/pull/4017) thanks to @ostrolucky

Code Style,Improvement
----------------------

 - [4050: Update doctrine/coding-standard to 8.0](https://github.com/doctrine/dbal/pull/4050) thanks to @morozov

Cache,Deprecation,Improvement,Prepared Statements
-------------------------------------------------

 - [4049: Replace forward-compatible ResultStatement interfaces with Result](https://github.com/doctrine/dbal/pull/4049) thanks to @morozov

Cache,Improvement,Prepared Statements
-------------------------------------

 - [4048: Make caching layer not rely on closeCursor()](https://github.com/doctrine/dbal/pull/4048) thanks to @morozov

Deprecation,Improvement,Prepared Statements
-------------------------------------------

 - [4037: Introduce Statement::fetchFirstColumn()](https://github.com/doctrine/dbal/pull/4037) thanks to @morozov
 - [4019: Deprecated the concept of the fetch mode](https://github.com/doctrine/dbal/pull/4019) thanks to @morozov

Bug,Documentation,Improvement,Prepared Statements
-------------------------------------------------

 - [4034: Additional changes based on the discussion in #4007](https://github.com/doctrine/dbal/pull/4034) thanks to @morozov

Connections,Console,Improvement
-------------------------------

 - [3956: allow using multiple connections for CLI commands](https://github.com/doctrine/dbal/pull/3956) thanks to @dmaicher

Deprecation,Logging
-------------------

 - [3935: Deprecate EchoSQLLogger](https://github.com/doctrine/dbal/pull/3935) thanks to @morozov

Improvement,Packaging
---------------------

 - [3924: Actualize the content of the .gitattributes file](https://github.com/doctrine/dbal/pull/3924) thanks to @morozov

Azure,Deprecation,Drivers,Drizzle,MariaDB,Platforms,PostgreSQL,SQL Anywhere,SQL Server,Sharding,pdo_ibm
-------------------------------------------------------------------------------------------------------

 - [3905: Deprecate the usage of the legacy platforms and drivers](https://github.com/doctrine/dbal/pull/3905) thanks to @morozov

Deprecation,Query
-----------------

 - [3864: CompositeExpression and()/or() factory methods](https://github.com/doctrine/dbal/pull/3864) thanks to @BenMorel
 - [3853: Deprecate calling QueryBuilder methods with an array argument](https://github.com/doctrine/dbal/pull/3853) thanks to @BenMorel and @morozov

Deprecation,Tools
-----------------

 - [3861: Deprecated the usage of the Version class](https://github.com/doctrine/dbal/pull/3861) thanks to @morozov

Improvement,Query
-----------------

 - [3852: First parameter of ExpressionBuilder::and/or() mandatory](https://github.com/doctrine/dbal/pull/3852) thanks to @BenMorel

Deprecation,Improvement,Query
-----------------------------

 - [3851: Rename andX() / orX() methods](https://github.com/doctrine/dbal/pull/3851) thanks to @BenMorel
 - [3850: Prepare CompositeExpression for immutability](https://github.com/doctrine/dbal/pull/3850) thanks to @BenMorel