|
|
@@ -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){
|