We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87acaf7 commit 694b031Copy full SHA for 694b031
1 file changed
system/Database/BaseBuilder.php
@@ -3178,7 +3178,7 @@ protected function compileWhereHaving(string $qbKey): string
3178
// 5 => ')' /* optional */
3179
// ];
3180
3181
- if (isset($matches[4]) && $matches[4] !== '' && $matches[4] !== '0') {
+ if (isset($matches[4]) && $matches[4] !== '') {
3182
$protectIdentifiers = false;
3183
if (str_contains($matches[4], '.')) {
3184
$protectIdentifiers = true;
0 commit comments