mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 10:08:20 +00:00
Convert u64 rowid to i64
Rowids can be negative, therefore let's swap to i64
This commit is contained in:
parent
0fbff54b90
commit
da4190a23e
10 changed files with 75 additions and 64 deletions
|
@ -122,7 +122,7 @@ fn test_integer_primary_key() -> anyhow::Result<()> {
|
|||
}
|
||||
}
|
||||
assert_eq!(rowids.len(), 2);
|
||||
assert!(rowids[0] > 0);
|
||||
assert!(rowids[1] == -1);
|
||||
assert!(rowids[0] == -1);
|
||||
assert!(rowids[1] == 0);
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue