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
8537f522
Unverified
Commit
8537f522
authored
Jul 17, 2020
by
Sergei Morozov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename $statement in Connection::fetch*() to $sql
parent
bd593e69
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
Connection.php
lib/Doctrine/DBAL/Connection.php
+16
-16
No files found.
lib/Doctrine/DBAL/Connection.php
View file @
8537f522
...
@@ -542,50 +542,50 @@ class Connection implements DriverConnection
...
@@ -542,50 +542,50 @@ class Connection implements DriverConnection
* Prepares and executes an SQL query and returns the first row of the result
* Prepares and executes an SQL query and returns the first row of the result
* as an associative array.
* as an associative array.
*
*
* @param string $s
tatement The SQL query.
* @param string $s
ql The query SQL
* @param mixed[] $params
The query parameters.
* @param mixed[] $params
The query parameters
* @param int[]|string[] $types
The query parameter types.
* @param int[]|string[] $types
The query parameter types
*
*
* @return mixed[]|false False is returned if no rows are found.
* @return mixed[]|false False is returned if no rows are found.
*
*
* @throws DBALException
* @throws DBALException
*/
*/
public
function
fetchAssoc
(
$s
tatement
,
array
$params
=
[],
array
$types
=
[])
public
function
fetchAssoc
(
$s
ql
,
array
$params
=
[],
array
$types
=
[])
{
{
return
$this
->
executeQuery
(
$s
tatement
,
$params
,
$types
)
->
fetch
(
FetchMode
::
ASSOCIATIVE
);
return
$this
->
executeQuery
(
$s
ql
,
$params
,
$types
)
->
fetch
(
FetchMode
::
ASSOCIATIVE
);
}
}
/**
/**
* Prepares and executes an SQL query and returns the first row of the result
* Prepares and executes an SQL query and returns the first row of the result
* as a numerically indexed array.
* as a numerically indexed array.
*
*
* @param string $s
tatement The SQL query to be executed.
* @param string $s
ql The query SQL
* @param mixed[] $params
The prepared statement params.
* @param mixed[] $params
The query parameters
* @param int[]|string[] $types
The query parameter types.
* @param int[]|string[] $types
The query parameter types
*
*
* @return mixed[]|false False is returned if no rows are found.
* @return mixed[]|false False is returned if no rows are found.
*/
*/
public
function
fetchArray
(
$s
tatement
,
array
$params
=
[],
array
$types
=
[])
public
function
fetchArray
(
$s
ql
,
array
$params
=
[],
array
$types
=
[])
{
{
return
$this
->
executeQuery
(
$s
tatement
,
$params
,
$types
)
->
fetch
(
FetchMode
::
NUMERIC
);
return
$this
->
executeQuery
(
$s
ql
,
$params
,
$types
)
->
fetch
(
FetchMode
::
NUMERIC
);
}
}
/**
/**
* Prepares and executes an SQL query and returns the value of a single column
* Prepares and executes an SQL query and returns the value of a single column
* of the first row of the result.
* of the first row of the result.
*
*
* @param string $s
tatement The SQL query to be executed.
* @param string $s
ql The query SQL
* @param mixed[] $params
The prepared statement params.
* @param mixed[] $params
The query parameters
* @param int $column
The 0-indexed column number to retrieve.
* @param int $column
The 0-indexed column number to retrieve
* @param int[]|string[] $types
The query parameter types.
* @param int[]|string[] $types
The query parameter types
*
*
* @return mixed|false False is returned if no rows are found.
* @return mixed|false False is returned if no rows are found.
*
*
* @throws DBALException
* @throws DBALException
*/
*/
public
function
fetchColumn
(
$s
tatement
,
array
$params
=
[],
$column
=
0
,
array
$types
=
[])
public
function
fetchColumn
(
$s
ql
,
array
$params
=
[],
$column
=
0
,
array
$types
=
[])
{
{
return
$this
->
executeQuery
(
$s
tatement
,
$params
,
$types
)
->
fetchColumn
(
$column
);
return
$this
->
executeQuery
(
$s
ql
,
$params
,
$types
)
->
fetchColumn
(
$column
);
}
}
/**
/**
...
...
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