Skip to content

Commit 48c934f

Browse files
committed
Fix small logic bug in JDBCEmitter in calculating when to truncate.
1 parent e172306 commit 48c934f

File tree

1 file changed

+1
-1
lines changed
  • tika-pipes/tika-emitters/tika-emitter-jdbc/src/main/java/org/apache/tika/pipes/emitter/jdbc

1 file changed

+1
-1
lines changed

tika-pipes/tika-emitters/tika-emitter-jdbc/src/main/java/org/apache/tika/pipes/emitter/jdbc/JDBCEmitter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ private static String getHandledTypes() {
617617
private static class StringNormalizer {
618618

619619
String normalize(String emitKey, String columnName, String s, int maxLength) {
620-
if (maxLength < 0 || s.length() < maxLength) {
620+
if (maxLength < 0 || s.length() <= maxLength) {
621621
return s;
622622
}
623623
LOGGER.warn("truncating {}->'{}' from {} chars to {} chars",

0 commit comments

Comments
 (0)