Santize table names to prevent conllisions with MySQL reserved words. Fixes #25.
This commit is contained in:
@ -30,6 +30,6 @@ class StudlyCaseMatcher extends BaseMatcher
|
||||
|
||||
public function buildQueryString($column, $searchString)
|
||||
{
|
||||
return "IF( CHAR_LENGTH( TRIM($column)) = CHAR_LENGTH( REPLACE( TRIM($column), ' ', '')) AND $column {$this->operator} '{$this->formatSearchString($searchString)}', {$this->multiplier}, 0)";
|
||||
return "IF( CHAR_LENGTH( TRIM( $column )) = CHAR_LENGTH( REPLACE( TRIM( $column ), ' ', '')) AND $column {$this->operator} '{$this->formatSearchString($searchString)}', {$this->multiplier}, 0)";
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user