-
Bug
-
Resolution: Done
-
Major
-
7.1.0.DR18
-
None
In the JDBCSequentialFile.setWritePosition there is mismatch between types. The parameter of the method has type int but the private field has type long.
private long writePosition = 0; void setWritePosition(int writePosition) { this.writePosition = writePosition; }
Because of this in JDBCSequentialFileFactoryDriver.loadFile the long is unnecessarily retype to int.
public void loadFile(JDBCSequentialFile file) throws SQLException { synchronized (connection) { connection.setAutoCommit(false); readLargeObject.setLong(1, file.getId()); try (ResultSet rs = readLargeObject.executeQuery()) { if (rs.next()) { Blob blob = rs.getBlob(1); if (blob != null) { file.setWritePosition((int) blob.length()); } else { logger.warn("ERROR NO BLOB FOR FILE" + "File: " + file.getFileName() + " " + file.getId()); } } connection.commit(); } catch (SQLException e) { connection.rollback(); throw e; } } }
- incorporates
-
JBEAP-11252 Upgrade Artemis 1.5.5.jbossorg-002
-
- Closed
-
- is blocked by
-
JBEAP-11252 Upgrade Artemis 1.5.5.jbossorg-002
-
- Closed
-
- cloned to
-
ARTEMIS-1190 Loading...