mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-25 00:36:56 +02:00
don't call SQLITE_EXTENSION_INIT2 if SQLITE_CORE
This commit is contained in:
parent
fb11a2b32e
commit
89faa5be15
1 changed files with 6 additions and 0 deletions
|
|
@ -6982,7 +6982,9 @@ static sqlite3_module vec_static_blob_entriesModule = {
|
||||||
|
|
||||||
SQLITE_VEC_API int sqlite3_vec_init(sqlite3 *db, char **pzErrMsg,
|
SQLITE_VEC_API int sqlite3_vec_init(sqlite3 *db, char **pzErrMsg,
|
||||||
const sqlite3_api_routines *pApi) {
|
const sqlite3_api_routines *pApi) {
|
||||||
|
#ifndef SQLITE_CORE
|
||||||
SQLITE_EXTENSION_INIT2(pApi);
|
SQLITE_EXTENSION_INIT2(pApi);
|
||||||
|
#endif
|
||||||
int rc = SQLITE_OK;
|
int rc = SQLITE_OK;
|
||||||
|
|
||||||
#define DEFAULT_FLAGS (SQLITE_UTF8 | SQLITE_INNOCUOUS | SQLITE_DETERMINISTIC)
|
#define DEFAULT_FLAGS (SQLITE_UTF8 | SQLITE_INNOCUOUS | SQLITE_DETERMINISTIC)
|
||||||
|
|
@ -7067,7 +7069,9 @@ SQLITE_VEC_API int sqlite3_vec_init(sqlite3 *db, char **pzErrMsg,
|
||||||
SQLITE_VEC_API int sqlite3_vec_fs_read_init(sqlite3 *db, char **pzErrMsg,
|
SQLITE_VEC_API int sqlite3_vec_fs_read_init(sqlite3 *db, char **pzErrMsg,
|
||||||
const sqlite3_api_routines *pApi) {
|
const sqlite3_api_routines *pApi) {
|
||||||
UNUSED_PARAMETER(pzErrMsg);
|
UNUSED_PARAMETER(pzErrMsg);
|
||||||
|
#ifndef SQLITE_CORE
|
||||||
SQLITE_EXTENSION_INIT2(pApi);
|
SQLITE_EXTENSION_INIT2(pApi);
|
||||||
|
#endif
|
||||||
int rc = SQLITE_OK;
|
int rc = SQLITE_OK;
|
||||||
rc = sqlite3_create_function_v2(db, "vec_npy_file", 1, SQLITE_RESULT_SUBTYPE,
|
rc = sqlite3_create_function_v2(db, "vec_npy_file", 1, SQLITE_RESULT_SUBTYPE,
|
||||||
NULL, vec_npy_file, NULL, NULL, NULL);
|
NULL, vec_npy_file, NULL, NULL, NULL);
|
||||||
|
|
@ -7079,7 +7083,9 @@ SQLITE_VEC_API int
|
||||||
sqlite3_vec_static_blobs_init(sqlite3 *db, char **pzErrMsg,
|
sqlite3_vec_static_blobs_init(sqlite3 *db, char **pzErrMsg,
|
||||||
const sqlite3_api_routines *pApi) {
|
const sqlite3_api_routines *pApi) {
|
||||||
UNUSED_PARAMETER(pzErrMsg);
|
UNUSED_PARAMETER(pzErrMsg);
|
||||||
|
#ifndef SQLITE_CORE
|
||||||
SQLITE_EXTENSION_INIT2(pApi);
|
SQLITE_EXTENSION_INIT2(pApi);
|
||||||
|
#endif
|
||||||
|
|
||||||
int rc = SQLITE_OK;
|
int rc = SQLITE_OK;
|
||||||
vec_static_blob_data *static_blob_data;
|
vec_static_blob_data *static_blob_data;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue