Skip to content

Commit 4151d59

Browse files
author
Marcus Pousette
committed
tests(vec0-native): bind rowid as BigInt to enforce INTEGER affinity across environments; placeholders already anonymous
1 parent e84e1fc commit 4151d59

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dist-tests/vec0-native.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ test('vec0 create/insert/query works (native ext present)', async () => {
2020
if (process.env.SQLITE3_VEC_DEBUG === '1') {
2121
console.log('[test][insert]', { rowid: i, vector: `Float32Array(${vec.length})` });
2222
}
23-
ins.run([i, vec.buffer]);
23+
// Use BigInt for rowid to ensure SQLITE_INTEGER binding across environments
24+
ins.run([BigInt(i), vec.buffer]);
2425
}
2526

2627
const probe = toVec();

0 commit comments

Comments
 (0)