mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-25 00:36:56 +02:00
gha: windows dont typedef, fix linux eqp
This commit is contained in:
parent
df4d629891
commit
0f08b94dbd
2 changed files with 5 additions and 3 deletions
|
|
@ -53,9 +53,11 @@ SQLITE_EXTENSION_INIT1
|
||||||
# define LONGDOUBLE_TYPE long double
|
# define LONGDOUBLE_TYPE long double
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef _WIN32
|
||||||
typedef u_int8_t uint8_t;
|
typedef u_int8_t uint8_t;
|
||||||
typedef u_int16_t uint16_t;
|
typedef u_int16_t uint16_t;
|
||||||
typedef u_int64_t uint64_t;
|
typedef u_int64_t uint64_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef UNUSED_PARAMETER
|
#ifndef UNUSED_PARAMETER
|
||||||
#define UNUSED_PARAMETER(X) (void)(X)
|
#define UNUSED_PARAMETER(X) (void)(X)
|
||||||
|
|
|
||||||
|
|
@ -616,15 +616,15 @@ def test_smoke():
|
||||||
explain_query_plan(
|
explain_query_plan(
|
||||||
"select * from vec_xyz where a match X'' and k = 10 order by distance"
|
"select * from vec_xyz where a match X'' and k = 10 order by distance"
|
||||||
)
|
)
|
||||||
== "SCAN vec_xyz VIRTUAL TABLE INDEX 0:knn:"
|
== "SCAN (TABLE )?vec_xyz VIRTUAL TABLE INDEX 0:knn:"
|
||||||
)
|
)
|
||||||
assert (
|
assert (
|
||||||
explain_query_plan("select * from vec_xyz")
|
explain_query_plan("select * from vec_xyz")
|
||||||
== "SCAN vec_xyz VIRTUAL TABLE INDEX 0:fullscan"
|
== "SCAN (TABLE )?vec_xyz VIRTUAL TABLE INDEX 0:fullscan"
|
||||||
)
|
)
|
||||||
assert (
|
assert (
|
||||||
explain_query_plan("select * from vec_xyz where rowid = 4")
|
explain_query_plan("select * from vec_xyz where rowid = 4")
|
||||||
== "SCAN vec_xyz VIRTUAL TABLE INDEX 3:point"
|
== "SCAN (TABLE )?vec_xyz VIRTUAL TABLE INDEX 3:point"
|
||||||
)
|
)
|
||||||
|
|
||||||
db.execute("insert into vec_xyz(rowid, a) select 1, X'000000000000803f'")
|
db.execute("insert into vec_xyz(rowid, a) select 1, X'000000000000803f'")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue