Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
3c72aeb7
Unverified
Commit
3c72aeb7
authored
May 22, 2020
by
Sergei Morozov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deprecated Connection::project(), Statement::errorCode() and errorInfo()
parent
f3e8dfb0
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
71 additions
and
1 deletion
+71
-1
UPGRADE.md
UPGRADE.md
+9
-1
Connection.php
lib/Doctrine/DBAL/Connection.php
+6
-0
Connection.php
lib/Doctrine/DBAL/Driver/Connection.php
+4
-0
DB2Connection.php
lib/Doctrine/DBAL/Driver/IBMDB2/DB2Connection.php
+4
-0
DB2Statement.php
lib/Doctrine/DBAL/Driver/IBMDB2/DB2Statement.php
+4
-0
MysqliConnection.php
lib/Doctrine/DBAL/Driver/Mysqli/MysqliConnection.php
+4
-0
MysqliStatement.php
lib/Doctrine/DBAL/Driver/Mysqli/MysqliStatement.php
+4
-0
OCI8Connection.php
lib/Doctrine/DBAL/Driver/OCI8/OCI8Connection.php
+4
-0
OCI8Statement.php
lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php
+4
-0
SQLAnywhereConnection.php
...octrine/DBAL/Driver/SQLAnywhere/SQLAnywhereConnection.php
+4
-0
SQLAnywhereStatement.php
...Doctrine/DBAL/Driver/SQLAnywhere/SQLAnywhereStatement.php
+4
-0
SQLSrvConnection.php
lib/Doctrine/DBAL/Driver/SQLSrv/SQLSrvConnection.php
+4
-0
SQLSrvStatement.php
lib/Doctrine/DBAL/Driver/SQLSrv/SQLSrvStatement.php
+4
-0
Statement.php
lib/Doctrine/DBAL/Driver/Statement.php
+4
-0
Statement.php
lib/Doctrine/DBAL/Portability/Statement.php
+4
-0
Statement.php
lib/Doctrine/DBAL/Statement.php
+4
-0
No files found.
UPGRADE.md
View file @
3c72aeb7
# Upgrade to 2.11
## Deprecated `Connection::project()`
The
`Connection::project()`
method is deprecated. Implement data transformation outside of DBAL.
## Deprecated `Statement::errorCode()` and `errorInfo()`
The
`Statement::errorCode()`
and
`errorInfo()`
methods are deprecated. The error information is available via exceptions.
## Deprecated `EchoSQLLogger`
The
`EchoSQLLogger`
is has been
deprecated. Implement your logger with the desired logic.
The
`EchoSQLLogger`
class is
deprecated. Implement your logger with the desired logic.
## Deprecated database platforms:
...
...
lib/Doctrine/DBAL/Connection.php
View file @
3c72aeb7
...
...
@@ -973,6 +973,8 @@ class Connection implements DriverConnection
* Executes an, optionally parametrized, SQL query and returns the result,
* applying a given projection/transformation function on each row of the result.
*
* @deprecated
*
* @param string $query The SQL query to execute.
* @param mixed[] $params The parameters, if any.
* @param Closure $function The transformation function that is applied on each row.
...
...
@@ -1123,6 +1125,8 @@ class Connection implements DriverConnection
/**
* Fetches the SQLSTATE associated with the last database operation.
*
* @deprecated The error information is available via exceptions.
*
* @return string|null The last error code.
*/
public
function
errorCode
()
...
...
@@ -1132,6 +1136,8 @@ class Connection implements DriverConnection
/**
* {@inheritDoc}
*
* @deprecated The error information is available via exceptions.
*/
public
function
errorInfo
()
{
...
...
lib/Doctrine/DBAL/Driver/Connection.php
View file @
3c72aeb7
...
...
@@ -80,6 +80,8 @@ interface Connection
/**
* Returns the error code associated with the last operation on the database handle.
*
* @deprecated The error information is available via exceptions.
*
* @return string|null The error code, or null if no operation has been run on the database handle.
*/
public
function
errorCode
();
...
...
@@ -87,6 +89,8 @@ interface Connection
/**
* Returns extended error information associated with the last operation on the database handle.
*
* @deprecated The error information is available via exceptions.
*
* @return mixed[]
*/
public
function
errorInfo
();
...
...
lib/Doctrine/DBAL/Driver/IBMDB2/DB2Connection.php
View file @
3c72aeb7
...
...
@@ -180,6 +180,8 @@ class DB2Connection implements Connection, ServerInfoAwareConnection
/**
* {@inheritdoc}
*
* @deprecated The error information is available via exceptions.
*/
public
function
errorCode
()
{
...
...
@@ -188,6 +190,8 @@ class DB2Connection implements Connection, ServerInfoAwareConnection
/**
* {@inheritdoc}
*
* @deprecated The error information is available via exceptions.
*/
public
function
errorInfo
()
{
...
...
lib/Doctrine/DBAL/Driver/IBMDB2/DB2Statement.php
View file @
3c72aeb7
...
...
@@ -167,6 +167,8 @@ class DB2Statement implements IteratorAggregate, Statement
/**
* {@inheritdoc}
*
* @deprecated The error information is available via exceptions.
*/
public
function
errorCode
()
{
...
...
@@ -175,6 +177,8 @@ class DB2Statement implements IteratorAggregate, Statement
/**
* {@inheritdoc}
*
* @deprecated The error information is available via exceptions.
*/
public
function
errorInfo
()
{
...
...
lib/Doctrine/DBAL/Driver/Mysqli/MysqliConnection.php
View file @
3c72aeb7
...
...
@@ -200,6 +200,8 @@ class MysqliConnection implements Connection, PingableConnection, ServerInfoAwar
/**
* {@inheritdoc}
*
* @deprecated The error information is available via exceptions.
*/
public
function
errorCode
()
{
...
...
@@ -208,6 +210,8 @@ class MysqliConnection implements Connection, PingableConnection, ServerInfoAwar
/**
* {@inheritdoc}
*
* @deprecated The error information is available via exceptions.
*/
public
function
errorInfo
()
{
...
...
lib/Doctrine/DBAL/Driver/Mysqli/MysqliStatement.php
View file @
3c72aeb7
...
...
@@ -393,6 +393,8 @@ class MysqliStatement implements IteratorAggregate, Statement
/**
* {@inheritdoc}
*
* @deprecated The error information is available via exceptions.
*/
public
function
errorCode
()
{
...
...
@@ -401,6 +403,8 @@ class MysqliStatement implements IteratorAggregate, Statement
/**
* {@inheritdoc}
*
* @deprecated The error information is available via exceptions.
*/
public
function
errorInfo
()
{
...
...
lib/Doctrine/DBAL/Driver/OCI8/OCI8Connection.php
View file @
3c72aeb7
...
...
@@ -216,6 +216,8 @@ class OCI8Connection implements Connection, ServerInfoAwareConnection
/**
* {@inheritdoc}
*
* @deprecated The error information is available via exceptions.
*/
public
function
errorCode
()
{
...
...
@@ -229,6 +231,8 @@ class OCI8Connection implements Connection, ServerInfoAwareConnection
/**
* {@inheritdoc}
*
* @deprecated The error information is available via exceptions.
*/
public
function
errorInfo
()
{
...
...
lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php
View file @
3c72aeb7
...
...
@@ -352,6 +352,8 @@ class OCI8Statement implements IteratorAggregate, Statement
/**
* {@inheritdoc}
*
* @deprecated The error information is available via exceptions.
*/
public
function
errorCode
()
{
...
...
@@ -365,6 +367,8 @@ class OCI8Statement implements IteratorAggregate, Statement
/**
* {@inheritdoc}
*
* @deprecated The error information is available via exceptions.
*/
public
function
errorInfo
()
{
...
...
lib/Doctrine/DBAL/Driver/SQLAnywhere/SQLAnywhereConnection.php
View file @
3c72aeb7
...
...
@@ -90,6 +90,8 @@ class SQLAnywhereConnection implements Connection, ServerInfoAwareConnection
/**
* {@inheritdoc}
*
* @deprecated The error information is available via exceptions.
*/
public
function
errorCode
()
{
...
...
@@ -98,6 +100,8 @@ class SQLAnywhereConnection implements Connection, ServerInfoAwareConnection
/**
* {@inheritdoc}
*
* @deprecated The error information is available via exceptions.
*/
public
function
errorInfo
()
{
...
...
lib/Doctrine/DBAL/Driver/SQLAnywhere/SQLAnywhereStatement.php
View file @
3c72aeb7
...
...
@@ -152,6 +152,8 @@ class SQLAnywhereStatement implements IteratorAggregate, Statement
/**
* {@inheritdoc}
*
* @deprecated The error information is available via exceptions.
*/
public
function
errorCode
()
{
...
...
@@ -160,6 +162,8 @@ class SQLAnywhereStatement implements IteratorAggregate, Statement
/**
* {@inheritdoc}
*
* @deprecated The error information is available via exceptions.
*/
public
function
errorInfo
()
{
...
...
lib/Doctrine/DBAL/Driver/SQLSrv/SQLSrvConnection.php
View file @
3c72aeb7
...
...
@@ -182,6 +182,8 @@ class SQLSrvConnection implements Connection, ServerInfoAwareConnection
/**
* {@inheritDoc}
*
* @deprecated The error information is available via exceptions.
*/
public
function
errorCode
()
{
...
...
@@ -195,6 +197,8 @@ class SQLSrvConnection implements Connection, ServerInfoAwareConnection
/**
* {@inheritDoc}
*
* @deprecated The error information is available via exceptions.
*/
public
function
errorInfo
()
{
...
...
lib/Doctrine/DBAL/Driver/SQLSrv/SQLSrvStatement.php
View file @
3c72aeb7
...
...
@@ -216,6 +216,8 @@ class SQLSrvStatement implements IteratorAggregate, Statement
/**
* {@inheritdoc}
*
* @deprecated The error information is available via exceptions.
*/
public
function
errorCode
()
{
...
...
@@ -229,6 +231,8 @@ class SQLSrvStatement implements IteratorAggregate, Statement
/**
* {@inheritdoc}
*
* @deprecated The error information is available via exceptions.
*/
public
function
errorInfo
()
{
...
...
lib/Doctrine/DBAL/Driver/Statement.php
View file @
3c72aeb7
...
...
@@ -61,6 +61,8 @@ interface Statement extends ResultStatement
/**
* Fetches the SQLSTATE associated with the last operation on the statement handle.
*
* @deprecated The error information is available via exceptions.
*
* @see Doctrine_Adapter_Interface::errorCode()
*
* @return string|int|bool The error code string.
...
...
@@ -70,6 +72,8 @@ interface Statement extends ResultStatement
/**
* Fetches extended error information associated with the last operation on the statement handle.
*
* @deprecated The error information is available via exceptions.
*
* @return mixed[] The error info array.
*/
public
function
errorInfo
();
...
...
lib/Doctrine/DBAL/Portability/Statement.php
View file @
3c72aeb7
...
...
@@ -81,6 +81,8 @@ class Statement implements IteratorAggregate, DriverStatement
/**
* {@inheritdoc}
*
* @deprecated The error information is available via exceptions.
*/
public
function
errorCode
()
{
...
...
@@ -91,6 +93,8 @@ class Statement implements IteratorAggregate, DriverStatement
/**
* {@inheritdoc}
*
* @deprecated The error information is available via exceptions.
*/
public
function
errorInfo
()
{
...
...
lib/Doctrine/DBAL/Statement.php
View file @
3c72aeb7
...
...
@@ -198,6 +198,8 @@ class Statement implements IteratorAggregate, DriverStatement
/**
* Fetches the SQLSTATE associated with the last operation on the statement.
*
* @deprecated The error information is available via exceptions.
*
* @return string|int|bool
*/
public
function
errorCode
()
...
...
@@ -207,6 +209,8 @@ class Statement implements IteratorAggregate, DriverStatement
/**
* {@inheritDoc}
*
* @deprecated The error information is available via exceptions.
*/
public
function
errorInfo
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment