Conduit user.query
Summary: specify user table to make things not ambiguous Test Plan: conduit console still works, including ID query...! Reviewers: epriestley Reviewed By: epriestley CC: aran, Koolvin Maniphest Tasks: T1075 Differential Revision: https://secure.phabricator.com/D2419
This commit is contained in:
@@ -85,7 +85,7 @@ final class PhabricatorPeopleQuery extends PhabricatorOffsetPagedQuery {
|
||||
|
||||
if ($this->usernames) {
|
||||
$where[] = qsprintf($conn_r,
|
||||
'userName IN (%Ls)',
|
||||
'user.userName IN (%Ls)',
|
||||
$this->usernames);
|
||||
}
|
||||
if ($this->emails) {
|
||||
@@ -95,17 +95,17 @@ final class PhabricatorPeopleQuery extends PhabricatorOffsetPagedQuery {
|
||||
}
|
||||
if ($this->realnames) {
|
||||
$where[] = qsprintf($conn_r,
|
||||
'realName IN (%Ls)',
|
||||
'user.realName IN (%Ls)',
|
||||
$this->realnames);
|
||||
}
|
||||
if ($this->phids) {
|
||||
$where[] = qsprintf($conn_r,
|
||||
'phid IN (%Ls)',
|
||||
'user.phid IN (%Ls)',
|
||||
$this->phids);
|
||||
}
|
||||
if ($this->ids) {
|
||||
$where[] = qsprintf($conn_r,
|
||||
'id IN (%Ld)',
|
||||
'user.id IN (%Ld)',
|
||||
$this->ids);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user