ARTEMIS-1190 Long/int type mismatch in JDBCSequentialFile.setWritePosition

This commit is contained in:
Erich Duda 2017-05-30 12:34:42 +02:00 committed by Clebert Suconic
parent c39a7afbcb
commit 69740a987d
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ public class JDBCSequentialFile implements SequentialFile {
this.dbDriver = driver;
}
void setWritePosition(int writePosition) {
void setWritePosition(long writePosition) {
this.writePosition = writePosition;
}

View File

@ -163,7 +163,7 @@ public class JDBCSequentialFileFactoryDriver extends AbstractJDBCDriver {
if (rs.next()) {
Blob blob = rs.getBlob(1);
if (blob != null) {
file.setWritePosition((int) blob.length());
file.setWritePosition(blob.length());
} else {
logger.warn("ERROR NO BLOB FOR FILE" + "File: " + file.getFileName() + " " + file.getId());
}