Introduce PhabricatorEmptyQueryException

Summary: It's dumb to execute a query which we know will return an empty result.

Test Plan: Looked at comment preview with "11", didn't see "1 = 0" in DarkConsole.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D5177
This commit is contained in:
vrana
2013-03-01 11:28:02 -08:00
parent 1091dc7aa1
commit b3a63a62a2
21 changed files with 35 additions and 24 deletions

View File

@@ -22,7 +22,7 @@ final class PhabricatorFileQuery
return $this;
}
public function loadPage() {
protected function loadPage() {
$table = new PhabricatorFile();
$conn_r = $table->establishConnection('r');