Skip to content

Commit acbc7a6

Browse files
committed
Fix old logic for seek
1 parent f9d9990 commit acbc7a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ impl<'a> io::Seek for LargeObject<'a> {
244244
};
245245
let stmt = try_io!(self.trans.prepare_cached("SELECT pg_catalog.lo_lseek($1, $2, $3)"));
246246
let rows = try_io!(stmt.query(&[&self.fd, &pos, &kind]));
247-
let pos: i64 = rows.iter().next().unwrap().get(0);
247+
let pos: i32 = rows.iter().next().unwrap().get(0);
248248
Ok(pos as u64)
249249
}
250250
}

0 commit comments

Comments
 (0)