mirror of
https://github.com/apache/nifi.git
synced 2025-02-06 01:58:32 +00:00
NIFI-6100 Use setBytes in JdbcCommon for binary types
This closes #3410 Signed-off-by: Mike Thomsen <mikerthomsen@gmail.com>
This commit is contained in:
parent
8245bc3f80
commit
81ddd02ca8
@ -807,7 +807,11 @@ public class JdbcCommon {
|
||||
throw new ParseException("Unable to parse binary data using the formatter `" + valueFormat + "`.",0);
|
||||
}
|
||||
|
||||
stmt.setBinaryStream(parameterIndex, new ByteArrayInputStream(bValue), bValue.length);
|
||||
try {
|
||||
stmt.setBinaryStream(parameterIndex, new ByteArrayInputStream(bValue), bValue.length);
|
||||
} catch (Exception ex) {
|
||||
stmt.setBytes(parameterIndex, bValue);
|
||||
}
|
||||
|
||||
break;
|
||||
case Types.CHAR:
|
||||
|
Loading…
x
Reference in New Issue
Block a user