Skip to content

Commit

Permalink
Merge pull request #798 from donardo/fix/RawSql
Browse files Browse the repository at this point in the history
fix to sqlRawSql
  • Loading branch information
yajra committed Jul 14, 2023
2 parents 0d0103e + 3a5c99e commit 321eae1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Oci8/Oci8Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down Expand Up @@ -384,7 +386,9 @@ protected function getConfigMaxLength()
*/
protected function getDefaultSchemaGrammar()
{
return $this->withTablePrefix(new SchemaGrammar());
($grammar = new SchemaGrammar)->setConnection($this);

return $this->withTablePrefix($grammar);
}

/**
Expand Down

0 comments on commit 321eae1

Please sign in to comment.