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
9ea5574e
Unverified
Commit
9ea5574e
authored
Jul 17, 2020
by
Sergei Morozov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename $statement in Connection::execute() to $sql
parent
abfa0ea0
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
16 additions
and
16 deletions
+16
-16
MasterSlaveConnection.php
lib/Doctrine/DBAL/Connections/MasterSlaveConnection.php
+2
-2
Connection.php
lib/Doctrine/DBAL/Driver/Connection.php
+2
-2
DB2Connection.php
lib/Doctrine/DBAL/Driver/IBMDB2/DB2Connection.php
+2
-2
MysqliConnection.php
lib/Doctrine/DBAL/Driver/Mysqli/MysqliConnection.php
+2
-2
OCI8Connection.php
lib/Doctrine/DBAL/Driver/OCI8/OCI8Connection.php
+2
-2
PDOConnection.php
lib/Doctrine/DBAL/Driver/PDOConnection.php
+2
-2
SQLAnywhereConnection.php
...octrine/DBAL/Driver/SQLAnywhere/SQLAnywhereConnection.php
+2
-2
SQLSrvConnection.php
lib/Doctrine/DBAL/Driver/SQLSrv/SQLSrvConnection.php
+2
-2
No files found.
lib/Doctrine/DBAL/Connections/MasterSlaveConnection.php
View file @
9ea5574e
...
@@ -306,11 +306,11 @@ class MasterSlaveConnection extends Connection
...
@@ -306,11 +306,11 @@ class MasterSlaveConnection extends Connection
/**
/**
* {@inheritDoc}
* {@inheritDoc}
*/
*/
public
function
exec
(
$s
tatement
)
public
function
exec
(
$s
ql
)
{
{
$this
->
connect
(
'master'
);
$this
->
connect
(
'master'
);
return
parent
::
exec
(
$s
tatement
);
return
parent
::
exec
(
$s
ql
);
}
}
/**
/**
...
...
lib/Doctrine/DBAL/Driver/Connection.php
View file @
9ea5574e
...
@@ -41,11 +41,11 @@ interface Connection
...
@@ -41,11 +41,11 @@ interface Connection
/**
/**
* Executes an SQL statement and return the number of affected rows.
* Executes an SQL statement and return the number of affected rows.
*
*
* @param string $s
tatement
* @param string $s
ql
*
*
* @return int
* @return int
*/
*/
public
function
exec
(
$s
tatement
);
public
function
exec
(
$s
ql
);
/**
/**
* Returns the ID of the last inserted row or sequence value.
* Returns the ID of the last inserted row or sequence value.
...
...
lib/Doctrine/DBAL/Driver/IBMDB2/DB2Connection.php
View file @
9ea5574e
...
@@ -120,9 +120,9 @@ class DB2Connection implements Connection, ServerInfoAwareConnection
...
@@ -120,9 +120,9 @@ class DB2Connection implements Connection, ServerInfoAwareConnection
/**
/**
* {@inheritdoc}
* {@inheritdoc}
*/
*/
public
function
exec
(
$s
tatement
)
public
function
exec
(
$s
ql
)
{
{
$stmt
=
@
db2_exec
(
$this
->
conn
,
$s
tatement
);
$stmt
=
@
db2_exec
(
$this
->
conn
,
$s
ql
);
if
(
$stmt
===
false
)
{
if
(
$stmt
===
false
)
{
throw
new
DB2Exception
(
db2_stmt_errormsg
());
throw
new
DB2Exception
(
db2_stmt_errormsg
());
...
...
lib/Doctrine/DBAL/Driver/Mysqli/MysqliConnection.php
View file @
9ea5574e
...
@@ -157,9 +157,9 @@ class MysqliConnection implements Connection, PingableConnection, ServerInfoAwar
...
@@ -157,9 +157,9 @@ class MysqliConnection implements Connection, PingableConnection, ServerInfoAwar
/**
/**
* {@inheritdoc}
* {@inheritdoc}
*/
*/
public
function
exec
(
$s
tatement
)
public
function
exec
(
$s
ql
)
{
{
if
(
$this
->
conn
->
query
(
$s
tatement
)
===
false
)
{
if
(
$this
->
conn
->
query
(
$s
ql
)
===
false
)
{
throw
new
MysqliException
(
$this
->
conn
->
error
,
$this
->
conn
->
sqlstate
,
$this
->
conn
->
errno
);
throw
new
MysqliException
(
$this
->
conn
->
error
,
$this
->
conn
->
sqlstate
,
$this
->
conn
->
errno
);
}
}
...
...
lib/Doctrine/DBAL/Driver/OCI8/OCI8Connection.php
View file @
9ea5574e
...
@@ -140,9 +140,9 @@ class OCI8Connection implements Connection, ServerInfoAwareConnection
...
@@ -140,9 +140,9 @@ class OCI8Connection implements Connection, ServerInfoAwareConnection
/**
/**
* {@inheritdoc}
* {@inheritdoc}
*/
*/
public
function
exec
(
$s
tatement
)
public
function
exec
(
$s
ql
)
{
{
$stmt
=
$this
->
prepare
(
$s
tatement
);
$stmt
=
$this
->
prepare
(
$s
ql
);
$stmt
->
execute
();
$stmt
->
execute
();
return
$stmt
->
rowCount
();
return
$stmt
->
rowCount
();
...
...
lib/Doctrine/DBAL/Driver/PDOConnection.php
View file @
9ea5574e
...
@@ -36,10 +36,10 @@ class PDOConnection extends PDO implements Connection, ServerInfoAwareConnection
...
@@ -36,10 +36,10 @@ class PDOConnection extends PDO implements Connection, ServerInfoAwareConnection
/**
/**
* {@inheritdoc}
* {@inheritdoc}
*/
*/
public
function
exec
(
$s
tatement
)
public
function
exec
(
$s
ql
)
{
{
try
{
try
{
$result
=
parent
::
exec
(
$s
tatement
);
$result
=
parent
::
exec
(
$s
ql
);
assert
(
$result
!==
false
);
assert
(
$result
!==
false
);
return
$result
;
return
$result
;
...
...
lib/Doctrine/DBAL/Driver/SQLAnywhere/SQLAnywhereConnection.php
View file @
9ea5574e
...
@@ -108,9 +108,9 @@ class SQLAnywhereConnection implements Connection, ServerInfoAwareConnection
...
@@ -108,9 +108,9 @@ class SQLAnywhereConnection implements Connection, ServerInfoAwareConnection
/**
/**
* {@inheritdoc}
* {@inheritdoc}
*/
*/
public
function
exec
(
$s
tatement
)
public
function
exec
(
$s
ql
)
{
{
if
(
sasql_real_query
(
$this
->
connection
,
$s
tatement
)
===
false
)
{
if
(
sasql_real_query
(
$this
->
connection
,
$s
ql
)
===
false
)
{
throw
SQLAnywhereException
::
fromSQLAnywhereError
(
$this
->
connection
);
throw
SQLAnywhereException
::
fromSQLAnywhereError
(
$this
->
connection
);
}
}
...
...
lib/Doctrine/DBAL/Driver/SQLSrv/SQLSrvConnection.php
View file @
9ea5574e
...
@@ -114,9 +114,9 @@ class SQLSrvConnection implements Connection, ServerInfoAwareConnection
...
@@ -114,9 +114,9 @@ class SQLSrvConnection implements Connection, ServerInfoAwareConnection
/**
/**
* {@inheritDoc}
* {@inheritDoc}
*/
*/
public
function
exec
(
$s
tatement
)
public
function
exec
(
$s
ql
)
{
{
$stmt
=
sqlsrv_query
(
$this
->
conn
,
$s
tatement
);
$stmt
=
sqlsrv_query
(
$this
->
conn
,
$s
ql
);
if
(
$stmt
===
false
)
{
if
(
$stmt
===
false
)
{
throw
SQLSrvException
::
fromSqlSrvErrors
();
throw
SQLSrvException
::
fromSqlSrvErrors
();
...
...
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