From 7cf22861b6b590a2e5f012e87dbc68ef41ee2bfe Mon Sep 17 00:00:00 2001 From: Jeffrey Aven Date: Wed, 7 Aug 2024 19:47:19 +1000 Subject: [PATCH] updated ci --- src/json_equal/json_equal.c | 4 ++++ src/regexp/regexp.c | 4 ++++ src/split_part/split_part.c | 4 ++++ test/json_equal.sql | 2 +- 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/json_equal/json_equal.c b/src/json_equal/json_equal.c index 8ca2a5c..c4aeff9 100644 --- a/src/json_equal/json_equal.c +++ b/src/json_equal/json_equal.c @@ -59,6 +59,10 @@ static void json_equal(sqlite3_context *context, int argc, sqlite3_value **argv) sqlite3_result_int(context, result); } +#ifdef _WIN32 +__declspec(dllexport) +#endif + int sqlite3_jsonequal_init(sqlite3 *db, char **pzErrMsg, const sqlite3_api_routines *pApi) { SQLITE_EXTENSION_INIT2(pApi) sqlite3_create_function(db, "json_equal", 2, SQLITE_UTF8, NULL, json_equal, NULL, NULL); diff --git a/src/regexp/regexp.c b/src/regexp/regexp.c index 77f727d..26ceb13 100644 --- a/src/regexp/regexp.c +++ b/src/regexp/regexp.c @@ -159,6 +159,10 @@ static void regexp_substr(sqlite3_context *context, int argc, sqlite3_value **ar } } +#ifdef _WIN32 +__declspec(dllexport) +#endif + int sqlite3_regexp_init(sqlite3 *db, char **pzErrMsg, const sqlite3_api_routines *pApi) { SQLITE_EXTENSION_INIT2(pApi) int rc = SQLITE_OK; diff --git a/src/split_part/split_part.c b/src/split_part/split_part.c index 31f6cba..a5728a1 100644 --- a/src/split_part/split_part.c +++ b/src/split_part/split_part.c @@ -169,6 +169,10 @@ static void split_part(sqlite3_context *context, int argc, sqlite3_value **argv) free(copy); } +#ifdef _WIN32 +__declspec(dllexport) +#endif + int sqlite3_splitpart_init(sqlite3 *db, char **pzErrMsg, const sqlite3_api_routines *pApi) { SQLITE_EXTENSION_INIT2(pApi) int rc = SQLITE_OK; diff --git a/test/json_equal.sql b/test/json_equal.sql index 7d479c6..3bc3291 100644 --- a/test/json_equal.sql +++ b/test/json_equal.sql @@ -1,7 +1,7 @@ -- Copyright (c) 2024 StackQL Studios, MIT License -- https://github.com/stackql -.load ./dist/json_equal.dll +.load dist/json_equal -- Test for identical JSON objects select '2_01', json_equal('{"key": "value"}', '{"key": "value"}') = 1;