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
35e9150d
Unverified
Commit
35e9150d
authored
Jul 10, 2020
by
Sergei Morozov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deprecate query() and exec() in favor of executeQuery() and executeStatement()
parent
524a23b0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
UPGRADE.md
UPGRADE.md
+2
-0
Connection.php
lib/Doctrine/DBAL/Connection.php
+4
-0
No files found.
UPGRADE.md
View file @
35e9150d
...
...
@@ -3,6 +3,8 @@
## Deprecations in the wrapper `Connection` class
1.
The
`executeUpdate()`
method has been deprecated in favor of
`executeStatement()`
.
2.
The
`query()`
method has been deprecated in favor of
`executeQuery()`
.
3.
The
`exec()`
method has been deprecated in favor of
`executeStatement()`
.
## PDO-related classes outside of the PDO namespace are deprecated
...
...
lib/Doctrine/DBAL/Connection.php
View file @
35e9150d
...
...
@@ -1249,6 +1249,8 @@ class Connection implements DriverConnection
/**
* Executes an SQL statement, returning a result set as a Statement object.
*
* @deprecated Use {@link executeQuery()} instead.
*
* @return \Doctrine\DBAL\Driver\Statement
*
* @throws DBALException
...
...
@@ -1360,6 +1362,8 @@ class Connection implements DriverConnection
/**
* Executes an SQL statement and return the number of affected rows.
*
* @deprecated Use {@link executeStatement()} instead.
*
* @param string $statement
*
* @return int The number of affected rows.
...
...
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