Page MenuHomePhabricator

Make "%LO" and "%LA" more readable when there is only one subclause
ClosedPublic

Authored by epriestley on Nov 7 2018, 12:03 PM.
Tags
None
Referenced Files
F13150321: D19788.id47254.diff
Sat, May 4, 3:08 PM
F13148775: D19788.id47255.diff
Sat, May 4, 4:16 AM
Unknown Object (File)
Fri, May 3, 8:52 AM
Unknown Object (File)
Thu, Apr 25, 2:40 AM
Unknown Object (File)
Fri, Apr 19, 8:05 PM
Unknown Object (File)
Fri, Apr 19, 4:40 AM
Unknown Object (File)
Thu, Apr 11, 1:41 PM
Unknown Object (File)
Mar 30 2024, 12:46 PM
Subscribers
None

Details

Summary

Depends on D19787. Ref T13217. If we only have one subclause, render WHERE (2 > 1) instead of WHERE ((2 > 1)).

When there are two or more clauses, continue to render WHERE ((2 > 1) AND (3 > 2) AND ...).

Test Plan

Looked at query log in DarkConsole, saw more readable queries.

Diff Detail

Repository
rPHU libphutil
Branch
qobject10
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 21103
Build 28684: Run Core Tests
Build 28683: arc lint + arc unit

Event Timeline

epriestley edited the summary of this revision. (Show Details)
  • For consistency and explicitness, retain one set of parentheses.
This revision is now accepted and ready to land.Nov 8 2018, 12:05 AM
This revision was automatically updated to reflect the committed changes.