From 2f91e4ad8eec2dec84e3b62527113a3563f23481 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Popowicz?= Date: Thu, 29 Nov 2018 11:23:03 +0100 Subject: [PATCH] Force reserved keywords table name to lower case --- src/Oci8/Query/Grammars/OracleGrammar.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Oci8/Query/Grammars/OracleGrammar.php b/src/Oci8/Query/Grammars/OracleGrammar.php index 40da6fa5..34a660c0 100644 --- a/src/Oci8/Query/Grammars/OracleGrammar.php +++ b/src/Oci8/Query/Grammars/OracleGrammar.php @@ -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); } /**