Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
5eae75ee
Commit
5eae75ee
authored
11 years ago
by
Thomas Müller
Browse files
Options
Downloads
Patches
Plain Diff
kill MDB2 in PHPDoc
parent
6c2a4256
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/public/db.php
+4
-4
4 additions, 4 deletions
lib/public/db.php
with
4 additions
and
4 deletions
lib/public/db.php
+
4
−
4
View file @
5eae75ee
...
@@ -39,9 +39,9 @@ class DB {
...
@@ -39,9 +39,9 @@ class DB {
* @param string $query Query string
* @param string $query Query string
* @param int $limit Limit of the SQL statement
* @param int $limit Limit of the SQL statement
* @param int $offset Offset of the SQL statement
* @param int $offset Offset of the SQL statement
* @return \
MDB2_
Statement
_Common
prepared SQL query
* @return \
Doctrine\DBAL\
Statement prepared SQL query
*
*
* SQL query via
MDB2
prepare(), needs to be execute()'d!
* SQL query via
Doctrine
prepare(), needs to be execute()'d!
*/
*/
static
public
function
prepare
(
$query
,
$limit
=
null
,
$offset
=
null
)
{
static
public
function
prepare
(
$query
,
$limit
=
null
,
$offset
=
null
)
{
return
(
\OC_DB
::
prepare
(
$query
,
$limit
,
$offset
));
return
(
\OC_DB
::
prepare
(
$query
,
$limit
,
$offset
));
...
@@ -73,7 +73,7 @@ class DB {
...
@@ -73,7 +73,7 @@ class DB {
* @param $table string The optional table name (will replace *PREFIX*) and add sequence suffix
* @param $table string The optional table name (will replace *PREFIX*) and add sequence suffix
* @return int
* @return int
*
*
*
MDB2
lastInsertID()
*
\Doctrine\DBAL\Connection
lastInsertID()
*
*
* Call this method right after the insert command or other functions may
* Call this method right after the insert command or other functions may
* cause trouble!
* cause trouble!
...
@@ -97,7 +97,7 @@ class DB {
...
@@ -97,7 +97,7 @@ class DB {
}
}
/**
/**
* Check if a result is an error, works with
MDB2 and PDOException
* Check if a result is an error, works with
Doctrine
* @param mixed $result
* @param mixed $result
* @return bool
* @return bool
*/
*/
...
...
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