Update 'src/ORM/DBInstance.php'
This commit is contained in:
@@ -5,6 +5,8 @@ namespace ORM;
|
|||||||
class DBInstance {
|
class DBInstance {
|
||||||
|
|
||||||
private static function addPrefix($sql, $instance = 'default'){
|
private static function addPrefix($sql, $instance = 'default'){
|
||||||
|
$con = Connections::getConnection($instance);
|
||||||
|
|
||||||
//Where is preg_replace when we need it D`:
|
//Where is preg_replace when we need it D`:
|
||||||
$sql = str_replace("\n", "", $sql);
|
$sql = str_replace("\n", "", $sql);
|
||||||
while(strpos($sql, " ") > -1){
|
while(strpos($sql, " ") > -1){
|
||||||
|
|||||||
Reference in New Issue
Block a user