summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Regad <dregad@mantisbt.org>2025-11-22 12:29:54 +0100
committerDamien Regad <dregad@mantisbt.org>2025-11-22 12:29:54 +0100
commit352ee036e8e26add59d42730581616c8299e1491 (patch)
treec6f2bb7436fc6dbf423b64fe1ce55f7d02ffcb47
parent7cafbbfa3bd1b065dd4ea491252d586835f3456b (diff)
downloadadodb-352ee036e8e26add59d42730581616c8299e1491.tar.gz
adodb-352ee036e8e26add59d42730581616c8299e1491.tar.bz2
adodb-352ee036e8e26add59d42730581616c8299e1491.zip
Add missing MetaTypes in switch
Some changes made in the standard ADODB_Active_Record class's doQuote() method were never applied to the extended version.
-rw-r--r--adodb-active-recordx.inc.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/adodb-active-recordx.inc.php b/adodb-active-recordx.inc.php
index 503d34dd..789c9930 100644
--- a/adodb-active-recordx.inc.php
+++ b/adodb-active-recordx.inc.php
@@ -765,12 +765,19 @@ class ADODB_Active_Record {
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';
}
+ case 'B':
+ case 'N':
case 'C':
/** @noinspection PhpMissingBreakStatementInspection */
case 'X':