Skip to content

Commit

Permalink
add support for Grammar's escape function
Browse files Browse the repository at this point in the history
  • Loading branch information
Uyan712 committed Jan 23, 2024
1 parent 349bc9a commit 6c969b5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,19 @@ class Connection extends MySqlConnection
*/
protected function getDefaultQueryGrammar()
{
return $this->withTablePrefix(new QueryGrammar);
($grammar = new QueryGrammar)->setConnection($this);

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

/**
* @return Grammar
*/
protected function getDefaultSchemaGrammar()
{
return $this->withTablePrefix(new SchemaGrammar);
($grammar = new SchemaGrammar)->setConnection($this);

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

/**
Expand Down

0 comments on commit 6c969b5

Please sign in to comment.