You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
try (PreparedStatementstatement = connection.prepareStatement("SELECT build, sum(case when errorDetails is not null then 1 else 0 end) as failCount, sum(case when skipped is not null then 1 else 0 end) as skipCount, sum(case when errorDetails is null and skipped is null then 1 else 0 end) as passCount FROM " + CASE_RESULTS_TABLE + " WHERE job = ? group by build order by build;")) {
195
+
try (PreparedStatementstatement = connection.prepareStatement("SELECT build, sum(case when errorDetails is not null then 1 else 0 end) as failCount, sum(case when skipped is not null then 1 else 0 end) as skipCount, sum(case when errorDetails is null and skipped is null then 1 else 0 end) as passCount FROM caseResults" + " WHERE job = ? group by build order by build;")) {
try (PreparedStatementstatement = connection.prepareStatement("SELECT build, sum(duration) as duration FROM " + CASE_RESULTS_TABLE + " WHERE job = ? group by build order by build;")) {
218
+
try (PreparedStatementstatement = connection.prepareStatement("SELECT build, sum(duration) as duration FROM caseResults" + " WHERE job = ? group by build order by build;")) {
try (PreparedStatementstatement = connection.prepareStatement("SELECT suite, testname, package, classname, errordetails, skipped, duration FROM " + CASE_RESULTS_TABLE + " WHERE job = ? AND build = ? AND testname = ?")) {
446
+
try (PreparedStatementstatement = connection.prepareStatement("SELECT suite, testname, package, classname, errordetails, skipped, duration FROM caseResults WHERE job = ? AND build = ? AND testname = ?")) {
449
447
statement.setString(1, job);
450
448
statement.setInt(2, build);
451
449
statement.setString(3, testName);
@@ -484,7 +482,7 @@ public CaseResult getCaseResult(String testName) {
484
482
@Override
485
483
publicSuiteResultgetSuite(Stringname) {
486
484
returnquery(connection -> {
487
-
try (PreparedStatementstatement = connection.prepareStatement("SELECT testname, package, classname, errordetails, skipped, duration FROM " + CASE_RESULTS_TABLE + " WHERE job = ? AND build = ? AND suite = ?")) {
485
+
try (PreparedStatementstatement = connection.prepareStatement("SELECT testname, package, classname, errordetails, skipped, duration FROM caseResults WHERE job = ? AND build = ? AND suite = ?")) {
488
486
statement.setString(1, job);
489
487
statement.setInt(2, build);
490
488
statement.setString(3, name);
@@ -518,7 +516,7 @@ public SuiteResult getSuite(String name) {
518
516
@Override
519
517
publicfloatgetTotalTestDuration() {
520
518
returnquery(connection -> {
521
-
try (PreparedStatementstatement = connection.prepareStatement("SELECT sum(duration) as duration FROM " + CASE_RESULTS_TABLE + " WHERE job = ? and build = ?;")) {
519
+
try (PreparedStatementstatement = connection.prepareStatement("SELECT sum(duration) as duration FROM caseResults" + " WHERE job = ? and build = ?;")) {
@@ -580,7 +578,7 @@ public List<CaseResult> getPassedTestsByPackage(String packageName) {
580
578
@CheckForNull
581
579
publicTestResultgetPreviousResult() {
582
580
returnquery(connection -> {
583
-
try (PreparedStatementstatement = connection.prepareStatement("SELECT build FROM " + CASE_RESULTS_TABLE + " WHERE job = ? AND build < ? ORDER BY build DESC LIMIT 1")) {
581
+
try (PreparedStatementstatement = connection.prepareStatement("SELECT build FROM caseResults WHERE job = ? AND build < ? ORDER BY build DESC LIMIT 1")) {
0 commit comments