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
F13222679: D19788.diff
Sun, May 19, 3:52 AM
F13205334: D19788.diff
Wed, May 15, 1:50 AM
F13188778: D19788.diff
Sat, May 11, 5:30 AM
F13173518: D19788.id.diff
Tue, May 7, 8:01 PM
Unknown Object (File)
Tue, May 7, 9:11 AM
Unknown Object (File)
Sat, May 4, 3:08 PM
Unknown Object (File)
Sat, May 4, 4:16 AM
Unknown Object (File)
Fri, May 3, 8:52 AM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.