Browse Source

Fix column with table sanitize

master
Daniel Iancu 9 years ago
parent
commit
15082590a4
  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