Update 'src/ORM/DBInstance.php'
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user