From 684a37e9ccbf29314e62e0314105d130c561521d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o?= Date: Sat, 31 Oct 2015 10:37:00 +0100 Subject: [PATCH] bugfix : remove ` trim on order tablename cause a query malformation if specific database is used --- src/PicORM/InternalQueryHelper.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/PicORM/InternalQueryHelper.php b/src/PicORM/InternalQueryHelper.php index 4692b4c..0c1206b 100644 --- a/src/PicORM/InternalQueryHelper.php +++ b/src/PicORM/InternalQueryHelper.php @@ -85,7 +85,6 @@ public function prefixOrderWithTable($data, $tableName) return $data; } - $tableName = trim($tableName, '`'); foreach ($data as $key => $v) { // if $v is empty, we have a custom order like RAND() and do not have to prefix if (!empty($v)) { @@ -166,4 +165,4 @@ public function cleanQueryBeforeSwitching() return $this; } -} \ No newline at end of file +}