Deprecate SQLSrvStatement::LAST_INSERT_ID_SQL constant.

parent e4978c22
...@@ -23,6 +23,10 @@ Some of the constants were renamed in the process: ...@@ -23,6 +23,10 @@ Some of the constants were renamed in the process:
* `DATETIMETZ` -> `DATETIMETZ_MUTABLE` * `DATETIMETZ` -> `DATETIMETZ_MUTABLE`
* `TIME` -> `TIME_MUTABLE` * `TIME` -> `TIME_MUTABLE`
## Deprecated `SQLSrvStatement::LAST_INSERT_ID_SQL` constant
The `Doctrine\DBAL\Driver\SQLSrv\SQLSrvStatement::LAST_INSERT_ID_SQL` constant has been deprecated and will be made private in 3.0.
# Upgrade to 2.9 # Upgrade to 2.9
## Deprecated `Statement::fetchColumn()` with an invalid index ## Deprecated `Statement::fetchColumn()` with an invalid index
......
...@@ -123,6 +123,8 @@ class SQLSrvStatement implements IteratorAggregate, Statement ...@@ -123,6 +123,8 @@ class SQLSrvStatement implements IteratorAggregate, Statement
/** /**
* Append to any INSERT query to retrieve the last insert id. * Append to any INSERT query to retrieve the last insert id.
*
* @deprecated This constant has been deprecated and will be made private in 3.0
*/ */
public const LAST_INSERT_ID_SQL = ';SELECT SCOPE_IDENTITY() AS LastInsertId;'; public const LAST_INSERT_ID_SQL = ';SELECT SCOPE_IDENTITY() AS LastInsertId;';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment