Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/CockroachDbConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class CockroachDbConnection extends PostgresConnection implements ConnectionInte
*/
protected function getDefaultQueryGrammar(): BaseGrammar
{
return $this->withTablePrefix($this->setConnection(new QueryGrammar()));
return $this->withTablePrefix($this->setConnection(new QueryGrammar($this)));
}

/**
Expand All @@ -46,7 +46,7 @@ public function getSchemaBuilder(): DbBuilder
*/
protected function getDefaultSchemaGrammar(): BaseGrammar
{
return $this->withTablePrefix($this->setConnection(new SchemaGrammar()));
return $this->withTablePrefix($this->setConnection(new SchemaGrammar($this)));
}

/**
Expand Down