From 352ee036e8e26add59d42730581616c8299e1491 Mon Sep 17 00:00:00 2001 From: Damien Regad Date: Sat, 22 Nov 2025 12:29:54 +0100 Subject: 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. --- adodb-active-recordx.inc.php | 7 +++++++ 1 file changed, 7 insertions(+) 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': -- cgit v1.3