From 3a5c99e17d9784f195999ff3605d1472b04efb04 Mon Sep 17 00:00:00 2001 From: "Douglas D. Donardo" Date: Thu, 13 Jul 2023 10:50:08 -0300 Subject: [PATCH] fix to sqlRawSql --- src/Oci8/Oci8Connection.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Oci8/Oci8Connection.php b/src/Oci8/Oci8Connection.php index 1bc7a662..1f9cd32d 100644 --- a/src/Oci8/Oci8Connection.php +++ b/src/Oci8/Oci8Connection.php @@ -329,7 +329,9 @@ public function createStatementFromFunction($functionName, array $bindings) */ protected function getDefaultQueryGrammar() { - return $this->withTablePrefix(new QueryGrammar()); + ($grammar = new QueryGrammar)->setConnection($this); + + return $this->withTablePrefix($grammar); } /** @@ -384,7 +386,9 @@ protected function getConfigMaxLength() */ protected function getDefaultSchemaGrammar() { - return $this->withTablePrefix(new SchemaGrammar()); + ($grammar = new SchemaGrammar)->setConnection($this); + + return $this->withTablePrefix($grammar); } /**