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
0a5bac1c
Unverified
Commit
0a5bac1c
authored
Jun 26, 2020
by
Sergei Morozov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark statement constructors internal
parent
e603a2e2
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
18 additions
and
0 deletions
+18
-0
UPGRADE.md
UPGRADE.md
+4
-0
DB2Statement.php
lib/Doctrine/DBAL/Driver/IBMDB2/DB2Statement.php
+2
-0
MysqliStatement.php
lib/Doctrine/DBAL/Driver/Mysqli/MysqliStatement.php
+2
-0
OCI8Statement.php
lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php
+2
-0
PDOStatement.php
lib/Doctrine/DBAL/Driver/PDOStatement.php
+2
-0
SQLAnywhereStatement.php
...Doctrine/DBAL/Driver/SQLAnywhere/SQLAnywhereStatement.php
+2
-0
SQLSrvStatement.php
lib/Doctrine/DBAL/Driver/SQLSrv/SQLSrvStatement.php
+2
-0
Statement.php
lib/Doctrine/DBAL/Statement.php
+2
-0
No files found.
UPGRADE.md
View file @
0a5bac1c
# Upgrade to 2.11
# Upgrade to 2.11
## Statement constructors are marked internal
The driver and wrapper statement objects can be only created by the corresponding connection objects.
## The `PingableConnection` interface is deprecated
## The `PingableConnection` interface is deprecated
The wrapper connection will automatically handle the lost connection if the driver supports reporting it.
The wrapper connection will automatically handle the lost connection if the driver supports reporting it.
...
...
lib/Doctrine/DBAL/Driver/IBMDB2/DB2Statement.php
View file @
0a5bac1c
...
@@ -92,6 +92,8 @@ class DB2Statement implements IteratorAggregate, StatementInterface, Result
...
@@ -92,6 +92,8 @@ class DB2Statement implements IteratorAggregate, StatementInterface, Result
private
$result
=
false
;
private
$result
=
false
;
/**
/**
* @internal The statement can be only instantiated by its driver connection.
*
* @param resource $stmt
* @param resource $stmt
*/
*/
public
function
__construct
(
$stmt
)
public
function
__construct
(
$stmt
)
...
...
lib/Doctrine/DBAL/Driver/Mysqli/MysqliStatement.php
View file @
0a5bac1c
...
@@ -82,6 +82,8 @@ class MysqliStatement implements IteratorAggregate, StatementInterface, Result
...
@@ -82,6 +82,8 @@ class MysqliStatement implements IteratorAggregate, StatementInterface, Result
private
$result
=
false
;
private
$result
=
false
;
/**
/**
* @internal The statement can be only instantiated by its driver connection.
*
* @param string $prepareString
* @param string $prepareString
*
*
* @throws MysqliException
* @throws MysqliException
...
...
lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php
View file @
0a5bac1c
...
@@ -105,6 +105,8 @@ class OCI8Statement implements IteratorAggregate, StatementInterface, Result
...
@@ -105,6 +105,8 @@ class OCI8Statement implements IteratorAggregate, StatementInterface, Result
/**
/**
* Creates a new OCI8Statement that uses the given connection handle and SQL statement.
* Creates a new OCI8Statement that uses the given connection handle and SQL statement.
*
*
* @internal The statement can be only instantiated by its driver connection.
*
* @param resource $dbh The connection handle.
* @param resource $dbh The connection handle.
* @param string $query The SQL query.
* @param string $query The SQL query.
*/
*/
...
...
lib/Doctrine/DBAL/Driver/PDOStatement.php
View file @
0a5bac1c
...
@@ -46,6 +46,8 @@ class PDOStatement extends \PDOStatement implements StatementInterface, Result
...
@@ -46,6 +46,8 @@ class PDOStatement extends \PDOStatement implements StatementInterface, Result
/**
/**
* Protected constructor.
* Protected constructor.
*
* @internal The statement can be only instantiated by its driver connection.
*/
*/
protected
function
__construct
()
protected
function
__construct
()
{
{
...
...
lib/Doctrine/DBAL/Driver/SQLAnywhere/SQLAnywhereStatement.php
View file @
0a5bac1c
...
@@ -71,6 +71,8 @@ class SQLAnywhereStatement implements IteratorAggregate, Statement, Result
...
@@ -71,6 +71,8 @@ class SQLAnywhereStatement implements IteratorAggregate, Statement, Result
/**
/**
* Prepares given statement for given connection.
* Prepares given statement for given connection.
*
*
* @internal The statement can be only instantiated by its driver connection.
*
* @param resource $conn The connection resource to use.
* @param resource $conn The connection resource to use.
* @param string $sql The SQL statement to prepare.
* @param string $sql The SQL statement to prepare.
*
*
...
...
lib/Doctrine/DBAL/Driver/SQLSrv/SQLSrvStatement.php
View file @
0a5bac1c
...
@@ -136,6 +136,8 @@ class SQLSrvStatement implements IteratorAggregate, StatementInterface, Result
...
@@ -136,6 +136,8 @@ class SQLSrvStatement implements IteratorAggregate, StatementInterface, Result
public
const
LAST_INSERT_ID_SQL
=
';SELECT SCOPE_IDENTITY() AS LastInsertId;'
;
public
const
LAST_INSERT_ID_SQL
=
';SELECT SCOPE_IDENTITY() AS LastInsertId;'
;
/**
/**
* @internal The statement can be only instantiated by its driver connection.
*
* @param resource $conn
* @param resource $conn
* @param string $sql
* @param string $sql
*/
*/
...
...
lib/Doctrine/DBAL/Statement.php
View file @
0a5bac1c
...
@@ -66,6 +66,8 @@ class Statement implements IteratorAggregate, DriverStatement, Result
...
@@ -66,6 +66,8 @@ class Statement implements IteratorAggregate, DriverStatement, Result
/**
/**
* Creates a new <tt>Statement</tt> for the given SQL and <tt>Connection</tt>.
* Creates a new <tt>Statement</tt> for the given SQL and <tt>Connection</tt>.
*
*
* @internal The statement can be only instantiated by {@link Connection}.
*
* @param string $sql The SQL of the statement.
* @param string $sql The SQL of the statement.
* @param Connection $conn The connection on which the statement should be executed.
* @param Connection $conn The connection on which the statement should be executed.
*/
*/
...
...
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