From f2eac27b98aebcb6cdd02b68744f4bf46d01165e Mon Sep 17 00:00:00 2001 From: ahwelp Date: Wed, 31 Jul 2019 22:21:13 +0000 Subject: [PATCH] Update 'src/ORM/DBInstance.php' --- src/ORM/DBInstance.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ORM/DBInstance.php b/src/ORM/DBInstance.php index 170f5fd..54588ba 100755 --- a/src/ORM/DBInstance.php +++ b/src/ORM/DBInstance.php @@ -5,6 +5,8 @@ namespace ORM; class DBInstance { private static function addPrefix($sql, $instance = 'default'){ + $con = Connections::getConnection($instance); + //Where is preg_replace when we need it D`: $sql = str_replace("\n", "", $sql); while(strpos($sql, " ") > -1){