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
9e60740d
Unverified
Commit
9e60740d
authored
May 08, 2019
by
Sergei Morozov
Committed by
GitHub
May 08, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3542 from jwage/deprecate-sql-srv-constant
Deprecate SQLSrvStatement::LAST_INSERT_ID_SQL constant.
parents
e4978c22
1a3c9b78
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
UPGRADE.md
UPGRADE.md
+5
-1
SQLSrvStatement.php
lib/Doctrine/DBAL/Driver/SQLSrv/SQLSrvStatement.php
+2
-0
No files found.
UPGRADE.md
View file @
9e60740d
...
...
@@ -23,6 +23,10 @@ Some of the constants were renamed in the process:
*
`DATETIMETZ`
->
`DATETIMETZ_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
## Deprecated `Statement::fetchColumn()` with an invalid index
...
...
@@ -92,7 +96,7 @@ This method now throws SPL ``UnexpectedValueException`` instead of accidentally
## Doctrine\DBAL\Connection::TRANSACTION_* constants deprecated
``Doctrine\DBAL\Connection::TRANSACTION_*``
were moved into
``Doctrine\DBAL\TransactionIsolationLevel``
class without the
``TRANSACTION_``
prefix.
``Doctrine\DBAL\Connection::TRANSACTION_*``
were moved into
``Doctrine\DBAL\TransactionIsolationLevel``
class without the
``TRANSACTION_``
prefix.
## DEPRECATION: direct usage of the PDO APIs in the DBAL API
...
...
lib/Doctrine/DBAL/Driver/SQLSrv/SQLSrvStatement.php
View file @
9e60740d
...
...
@@ -123,6 +123,8 @@ class SQLSrvStatement implements IteratorAggregate, Statement
/**
* 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;'
;
...
...
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