diff options
Diffstat (limited to 'adodb-active-recordx.inc.php')
| -rw-r--r-- | adodb-active-recordx.inc.php | 7 |
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': |
