Mercurial > hg > monetdb-java
changeset 489:9fcf77d703b1
Improve output of logViolations()
author | Martin van Dinther <martin.van.dinther@monetdbsolutions.com> |
---|---|
date | Wed, 04 Aug 2021 22:41:06 +0200 (2021-08-04) |
parents | 59309e3e6daa |
children | a6c98b35a054 |
files | src/main/java/org/monetdb/util/MDBvalidator.java |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/org/monetdb/util/MDBvalidator.java +++ b/src/main/java/org/monetdb/util/MDBvalidator.java @@ -665,7 +665,7 @@ public final class MDBvalidator { /* Run a validation query. * It should result in no rows returned. * When rows are returned those are the ones that contain violations. - * Retrieve them and convert the results (currently first 16 only) into a (large) violation string + * Retrieve them and convert the results (currently first 16 only) into a (large) violation string. * Log/Print the violation. */ private void validateQuery( @@ -869,7 +869,7 @@ public final class MDBvalidator { { final StringBuilder sb = new StringBuilder(2048); sb.append(checkType).append(" violation(s) found in \"") - .append(schema).append("\".\"").append(table).append("\".\"").append(columns).append("\":\n") + .append(schema).append("\".\"").append(table).append("\" (").append(columns).append("):\n") .append(violations) .append("Found using query: ").append(query).append("\n"); System.out.println(sb.toString()); @@ -894,7 +894,7 @@ public final class MDBvalidator { private static String minimumWidth(int val, int minWidth) { final String valstr = Integer.toString(val); - int spacesneeded = minWidth - valstr.length(); + final int spacesneeded = minWidth - valstr.length(); switch (spacesneeded) { case 1: return " " + valstr; case 2: return " " + valstr;