From 906ffe07a84a754cfe2c28180ab37979bbe4509d Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Thu, 8 May 2014 19:12:09 +0400 Subject: [PATCH] Add identify quotes into table in SqlModel.find --- model/SqlModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/SqlModel.php b/model/SqlModel.php index 181c4ab..a35f509 100644 --- a/model/SqlModel.php +++ b/model/SqlModel.php @@ -215,7 +215,7 @@ abstract class SqlModel extends Model $order = isset($order['sort']) ? $this->order($order, $order['sort']) : false; $limit = $this->db->limitExpr($limit); $result = $this->query( - (($sql_expression) ? $sql_expression : ('SELECT ' . $select . ' FROM ' . $this->table())) + (($sql_expression) ? $sql_expression : ('SELECT ' . $select . ' FROM ' . $this->identify($this->table()))) . (($where) ? (' WHERE ' . $where) : '') . (($group_by) ? (' GROUP BY ' . $group_by) : '') . (($order) ? ($order) : '')