case-insensitive username search
This commit is contained in:
parent
80354c99b5
commit
718f72c42d
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ class ActorColumn extends Column
|
||||||
$driver = $this->table->db->getAttribute(PDO::ATTR_DRIVER_NAME);
|
$driver = $this->table->db->getAttribute(PDO::ATTR_DRIVER_NAME);
|
||||||
switch ($driver) {
|
switch ($driver) {
|
||||||
case "pgsql":
|
case "pgsql":
|
||||||
return "((username = :{$this->name}_0) OR (address && cast(:{$this->name}_1 as inet)))";
|
return "((LOWER(username) = LOWER(:{$this->name}_0)) OR (address && cast(:{$this->name}_1 as inet)))";
|
||||||
default:
|
default:
|
||||||
return "((username = :{$this->name}_0) OR (address = :{$this->name}_1))";
|
return "((username = :{$this->name}_0) OR (address = :{$this->name}_1))";
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue