summaryrefslogtreecommitdiff
path: root/adodb-active-record.inc.php
diff options
context:
space:
mode:
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;
}
}