Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
4e37831d
Commit
4e37831d
authored
10 years ago
by
Thomas Müller
Browse files
Options
Downloads
Patches
Plain Diff
Fix PHPDoc on the way ....
parent
987b6838
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/private/db/connection.php
+15
-13
15 additions, 13 deletions
lib/private/db/connection.php
with
15 additions
and
13 deletions
lib/private/db/connection.php
+
15
−
13
View file @
4e37831d
...
...
@@ -79,8 +79,6 @@ class Connection extends \Doctrine\DBAL\Connection implements IDBConnection {
if
(
!
is_null
(
$limit
))
{
$platform
=
$this
->
getDatabasePlatform
();
$statement
=
$platform
->
modifyLimitQuery
(
$statement
,
$limit
,
$offset
);
}
else
{
$origStatement
=
$statement
;
}
$statement
=
$this
->
replaceTablePrefix
(
$statement
);
$statement
=
$this
->
adapter
->
fixupStatement
(
$statement
);
...
...
@@ -92,17 +90,19 @@ class Connection extends \Doctrine\DBAL\Connection implements IDBConnection {
}
/**
* Executes an, optionally paramet
e
rized, SQL query.
* Executes an, optionally parametrized, SQL query.
*
* If the query is paramet
e
rized, a prepared statement is used.
* If the query is parametrized, a prepared statement is used.
* If an SQLLogger is configured, the execution is logged.
*
* @param string $query The SQL query to execute.
* @param string[] $params The parameters to bind to the query, if any.
* @param array $types The types the previous parameters are in.
* @param QueryCacheProfile $qcp
* @param string $query The SQL query to execute.
* @param array $params The parameters to bind to the query, if any.
* @param array $types The types the previous parameters are in.
* @param \Doctrine\DBAL\Cache\QueryCacheProfile|null $qcp The query cache profile, optional.
*
* @return \Doctrine\DBAL\Driver\Statement The executed statement.
* @internal PERF: Directly prepares a driver statement, not a wrapper.
*
* @throws \Doctrine\DBAL\DBALException
*/
public
function
executeQuery
(
$query
,
array
$params
=
array
(),
$types
=
array
(),
QueryCacheProfile
$qcp
=
null
)
{
...
...
@@ -117,11 +117,13 @@ class Connection extends \Doctrine\DBAL\Connection implements IDBConnection {
*
* This method supports PDO binding types as well as DBAL mapping types.
*
* @param string $query The SQL query.
* @param array $params The query parameters.
* @param array $types The parameter types.
* @param string $query The SQL query.
* @param array $params The query parameters.
* @param array $types The parameter types.
*
* @return integer The number of affected rows.
* @internal PERF: Directly prepares a driver statement, not a wrapper.
*
* @throws \Doctrine\DBAL\DBALException
*/
public
function
executeUpdate
(
$query
,
array
$params
=
array
(),
array
$types
=
array
())
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment