Skip to content

Commit

Permalink
bugfix : remove ` trim on order tablename
Browse files Browse the repository at this point in the history
cause a query malformation if specific database is used
  • Loading branch information
iNem0o committed Oct 31, 2015
1 parent bbf5b40 commit 684a37e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/PicORM/InternalQueryHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down Expand Up @@ -166,4 +165,4 @@ public function cleanQueryBeforeSwitching()

return $this;
}
}
}

0 comments on commit 684a37e

Please sign in to comment.