Browse Source

Merge pull request #31 from danieliancu/patch-1

Allow table.column as field
master
Tom 9 years ago
parent
commit
efb1b63e17
  1. 6
      src/SearchDrivers/BaseSearchDriver.php

6
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}`";
}

Loading…
Cancel
Save