summaryrefslogtreecommitdiff
path: root/adodb-active-record.inc.php
diff options
context:
space:
mode:
authorDamien Regad <dregad@mantisbt.org>2025-11-22 12:19:55 +0100
committerDamien Regad <dregad@mantisbt.org>2025-11-22 12:19:55 +0100
commit30504fcefbc0c2442ba63a8ced905e722b9eae42 (patch)
treecd7314b2a9de0dd1a48ae7c68084fe06c44eeb60 /adodb-active-record.inc.php
parentca87e1ad23bc5cfd1b09b1d1bc7de586cc681338 (diff)
downloadadodb-30504fcefbc0c2442ba63a8ced905e722b9eae42.tar.gz
adodb-30504fcefbc0c2442ba63a8ced905e722b9eae42.tar.bz2
adodb-30504fcefbc0c2442ba63a8ced905e722b9eae42.zip
Fix static analysis warnings
Diffstat (limited to 'adodb-active-record.inc.php')
-rw-r--r--adodb-active-record.inc.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/adodb-active-record.inc.php b/adodb-active-record.inc.php
index 398abd3d..001d46d9 100644
--- a/adodb-active-record.inc.php
+++ b/adodb-active-record.inc.php
@@ -717,14 +717,16 @@ class ADODB_Active_Record {
}
// quote data in where clause
- function doQuote(&$db, $val, $t)
+ function doQuote($db, $val, $t)
{
switch ($t) {
+ /** @noinspection PhpMissingBreakStatementInspection */
case 'L':
if (strpos($db->databaseType, 'postgres') !== false) {
return $db->qstr($val);
}
case 'D':
+ /** @noinspection PhpMissingBreakStatementInspection */
case 'T':
if (empty($val)) {
return 'null';
@@ -732,6 +734,7 @@ class ADODB_Active_Record {
case 'B':
case 'N':
case 'C':
+ /** @noinspection PhpMissingBreakStatementInspection */
case 'X':
if (is_null($val)) {
return 'null';
@@ -743,11 +746,9 @@ class ADODB_Active_Record {
(strncmp($val, "'", 1) != 0 || substr($val, strlen($val) - 1, 1) != "'")
) {
return $db->qstr($val);
- break;
}
default:
return $val;
- break;
}
}