DbUserBackend: Use binary string comparison if it's a mysql db
This commit is contained in:
parent
55b9b44be9
commit
f63dfa5294
|
@ -186,8 +186,9 @@ class DbUserBackend extends DbRepository implements UserBackendInterface, Inspec
|
|||
|
||||
$query = $this->ds->select()
|
||||
->from($this->prependTablePrefix('user'), $columns)
|
||||
->where('name', $username)
|
||||
->where(($this->ds->getDbType() === 'mysql' ? 'BINARY ' : '') . 'name', $username)
|
||||
->where('active', true);
|
||||
|
||||
$statement = $this->ds->getDbAdapter()->prepare($query->getSelectQuery());
|
||||
$statement->execute();
|
||||
$statement->bindColumn(1, $lob, PDO::PARAM_LOB);
|
||||
|
|
Loading…
Reference in New Issue