Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15425613
D18728.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
706 B
Referenced Files
None
Subscribers
None
D18728.diff
View Options
diff --git a/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php b/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php
--- a/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php
+++ b/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php
@@ -1565,6 +1565,13 @@
return $select;
}
+ $vector = $this->getOrderVector();
+ if (!$vector->containsKey('rank')) {
+ // We only need to SELECT the virtual "_ft_rank" column if we're
+ // actually sorting the results by rank.
+ return $select;
+ }
+
if (!$this->ferretEngine) {
$select[] = '0 _ft_rank';
return $select;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 24, 5:02 AM (15 h, 57 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7648001
Default Alt Text
D18728.diff (706 B)
Attached To
Mode
D18728: Clean up virtual "_ft_rank" column for query construction of Ferret objects
Attached
Detach File
Event Timeline
Log In to Comment