From 74be444135c98ae53ea29bf35a5651a4aec6adad Mon Sep 17 00:00:00 2001 From: Erik Gaal Date: Thu, 22 Feb 2024 17:02:06 +0100 Subject: [PATCH] fix: set table prefix on query grammar --- src/PostgresEnhancedConnection.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PostgresEnhancedConnection.php b/src/PostgresEnhancedConnection.php index 8e725af..c643c04 100644 --- a/src/PostgresEnhancedConnection.php +++ b/src/PostgresEnhancedConnection.php @@ -117,6 +117,7 @@ public function serverVersion(): string protected function getDefaultQueryGrammar(): QueryGrammar { $grammar = new QueryGrammar(); + $grammar->setTablePrefix($this->tablePrefix); if (method_exists($grammar, 'setConnection')) { $grammar->setConnection($this); }