gha: windows dont typedef, fix linux eqp

This commit is contained in:
Alex Garcia 2024-04-20 16:06:49 -07:00
parent df4d629891
commit 0f08b94dbd
2 changed files with 5 additions and 3 deletions

View file

@ -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)

View file

@ -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'")