Skip to content
This repository was archived by the owner on Nov 26, 2022. It is now read-only.

Commit c00f88b

Browse files
author
Daniel Opitz
committed
Added coalesce comparison operator
1 parent c7bca89 commit c00f88b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Database/Condition.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ protected function getRightFieldValue($rightField, $comparison): array
123123
$rightField = '(' . implode(', ', $this->quoter->quoteArray((array)$rightField)) . ')';
124124
} elseif ($comparison == 'greatest' ||
125125
$comparison == 'least' ||
126+
$comparison == 'coalesce' ||
126127
$comparison == 'interval' ||
127128
$comparison === 'strcmp') {
128129
$comparison = '= ' . $comparison;

0 commit comments

Comments
 (0)