ARTEMIS-1190 Long/int type mismatch in JDBCSequentialFile.setWritePosition
This commit is contained in:
parent
c39a7afbcb
commit
69740a987d
|
@ -77,7 +77,7 @@ public class JDBCSequentialFile implements SequentialFile {
|
|||
this.dbDriver = driver;
|
||||
}
|
||||
|
||||
void setWritePosition(int writePosition) {
|
||||
void setWritePosition(long writePosition) {
|
||||
this.writePosition = writePosition;
|
||||
}
|
||||
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue