mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-25 00:36:56 +02:00
no inline, windows i64 fix?
This commit is contained in:
parent
a5525c9a5d
commit
2eafd843d7
2 changed files with 6 additions and 5 deletions
|
|
@ -1727,7 +1727,7 @@ size_t vector_byte_size(enum VectorElementType element_type,
|
|||
}
|
||||
}
|
||||
|
||||
inline size_t vector_column_byte_size(struct VectorColumnDefinition column) {
|
||||
size_t vector_column_byte_size(struct VectorColumnDefinition column) {
|
||||
return vector_byte_size(column.element_type, column.dimensions);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ def _f32(list):
|
|||
|
||||
|
||||
def _i64(list):
|
||||
return struct.pack("%sL" % len(list), *list)
|
||||
return struct.pack("%sl" % len(list), *list)
|
||||
|
||||
|
||||
def _int8(list):
|
||||
|
|
@ -1251,6 +1251,7 @@ def test_vec0_best_index():
|
|||
with _raises("A LIMIT or 'k = ?' constraint is required on vec0 knn queries."):
|
||||
db.execute("select * from t where aaa MATCH ?")
|
||||
|
||||
if SUPPORTS_VTAB_LIMIT:
|
||||
with _raises("Only LIMIT or 'k =?' can be provided, not both"):
|
||||
db.execute("select * from t where aaa MATCH ? and k = 10 limit 20")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue