diff --git a/src/Oci8/Query/Grammars/OracleGrammar.php b/src/Oci8/Query/Grammars/OracleGrammar.php index 36ff2995..291b68b3 100644 --- a/src/Oci8/Query/Grammars/OracleGrammar.php +++ b/src/Oci8/Query/Grammars/OracleGrammar.php @@ -546,7 +546,8 @@ private function resolveClause($column, $values, $type) $i = 0; $type = $this->wrap($column) . ' '.$type.' '; foreach ($chunks as $ch) { - if ($i > 0) { + // Add or only at the second loop + if ($i === 1) { $type = ' or ' . $type . ' '; } $whereClause .= $type . '('.implode(', ', $ch).')';