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
86c5243b
Commit
86c5243b
authored
11 years ago
by
Jörn Friedrich Dreyer
Browse files
Options
Downloads
Patches
Plain Diff
remove duplicate logging from db.php, now happens in entrypoints
parent
8dc6bdd9
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/db.php
+0
-4
0 additions, 4 deletions
lib/db.php
with
0 additions
and
4 deletions
lib/db.php
+
0
−
4
View file @
86c5243b
...
...
@@ -408,7 +408,6 @@ class OC_DB {
// TODO try to convert LIMIT OFFSET notation to parameters, see fixLimitClauseForMSSQL
$message
=
'LIMIT and OFFSET are forbidden for portability reasons,'
.
' pass an array with \'limit\' and \'offset\' instead'
;
\OCP\Util
::
writeLog
(
'db'
,
$message
,
\OCP\Util
::
FATAL
);
throw
new
DatabaseException
(
$message
);
}
$stmt
=
array
(
'sql'
=>
$stmt
,
'limit'
=>
null
,
'offset'
=>
null
);
...
...
@@ -417,7 +416,6 @@ class OC_DB {
// convert to prepared statement
if
(
!
array_key_exists
(
'sql'
,
$stmt
)
)
{
$message
=
'statement array must at least contain key \'sql\''
;
\OCP\Util
::
writeLog
(
'db'
,
$message
,
\OCP\Util
::
FATAL
);
throw
new
DatabaseException
(
$message
);
}
if
(
!
array_key_exists
(
'limit'
,
$stmt
)
)
{
...
...
@@ -438,7 +436,6 @@ class OC_DB {
}
else
{
$message
=
'Expected a prepared statement or array got '
.
gettype
(
$stmt
);
}
\OCP\Util
::
writeLog
(
'db'
,
$message
,
\OCP\Util
::
FATAL
);
throw
new
DatabaseException
(
$message
);
}
return
$result
;
...
...
@@ -937,7 +934,6 @@ class OC_DB {
}
else
{
$message
.
=
', Root cause:'
.
self
::
getErrorMessage
(
$result
);
}
OC_Log
::
write
(
'db'
,
$message
,
OC_Log
::
FATAL
);
throw
new
DatabaseException
(
$message
,
getErrorCode
(
$result
));
}
}
...
...
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