Skip to content

Commit

Permalink
updated ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreyaven committed Aug 7, 2024
1 parent e3805a6 commit 7cf2286
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/json_equal/json_equal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 4 additions & 0 deletions src/regexp/regexp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions src/split_part/split_part.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion test/json_equal.sql
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 7cf2286

Please sign in to comment.