From 15082590a4b38219139809dd649425495cb4c421 Mon Sep 17 00:00:00 2001 From: Daniel Iancu Date: Tue, 2 Feb 2016 15:39:54 +0200 Subject: [PATCH] Fix column with table sanitize --- src/SearchDrivers/BaseSearchDriver.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/SearchDrivers/BaseSearchDriver.php b/src/SearchDrivers/BaseSearchDriver.php index 152c755..d4f5557 100755 --- a/src/SearchDrivers/BaseSearchDriver.php +++ b/src/SearchDrivers/BaseSearchDriver.php @@ -158,8 +158,10 @@ abstract class BaseSearchDriver implements SearchDriverInterface * @param $name * @return string */ - protected function sanitizeColumnName( $name ){ - $name = trim($name, '` '); + protected function sanitizeColumnName($name) + { + $name = str_replace('.', '`.`', trim($name, '` ')); + return "`${name}`"; }