mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #2198 from simonwelsh/pgtest
Quote table/column names when falling back to $fullName
This commit is contained in:
commit
573ec9d58b
@ -183,7 +183,8 @@ abstract class SearchFilter extends Object {
|
||||
if($candidateClass == 'DataObject') {
|
||||
// fallback to the provided name in the event of a joined column
|
||||
// name (as the candidate class doesn't check joined records)
|
||||
return $this->fullName;
|
||||
$parts = explode('.', $this->fullName);
|
||||
return '"' . implode('"."', $parts) . '"';
|
||||
}
|
||||
|
||||
return "\"$candidateClass\".\"$this->name\"";
|
||||
|
Loading…
Reference in New Issue
Block a user