Skip to content

Commit

Permalink
Merge pull request #1 from mikaelpopowicz/5.7
Browse files Browse the repository at this point in the history
Force reserved keywords table name to lower case
  • Loading branch information
mfrancois authored Nov 29, 2018
2 parents 705990e + 2f91e4a commit cd6c0aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Oci8/Query/Grammars/OracleGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,9 @@ protected function wrapValue($value)
return $value;
}

$value = Str::upper($value);
$value = $this->isReserved($value) ? Str::lower($value) : Str::upper($value);

return '"' . str_replace('"', '""', $value) . '"';
return parent::wrapValue($value);
}

/**
Expand Down

0 comments on commit cd6c0aa

Please sign in to comment.