|
@@ -6,6 +6,7 @@ class DBInstance {
|
|
|
|
|
|
|
|
private static function addPrefix($sql, $instance = 'default'){
|
|
private static function addPrefix($sql, $instance = 'default'){
|
|
|
$con = Connections::getConnection($instance);
|
|
$con = Connections::getConnection($instance);
|
|
|
|
|
+ $sql = preg_replace( "/\r|\n/", "", $sql );
|
|
|
return preg_replace('/{(.*)}/', "$con->prefix$1", $sql);
|
|
return preg_replace('/{(.*)}/', "$con->prefix$1", $sql);
|
|
|
}
|
|
}
|
|
|
|
|
|