Skip to content

Commit 33f8702

Browse files
committed
fix
1 parent b98d707 commit 33f8702

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/sqlitejs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ const char *sqlitejs_version (void) {
808808
return gversion;
809809
}
810810

811-
APIEXPORT int sqlite3_sqlitejs_init (sqlite3 *db, char **pzErrMsg, const sqlite3_api_routines *pApi) {
811+
APIEXPORT int sqlite3_js_init (sqlite3 *db, char **pzErrMsg, const sqlite3_api_routines *pApi) {
812812
#ifndef SQLITE_CORE
813813
SQLITE_EXTENSION_INIT2(pApi);
814814
#endif

src/sqlitejs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include "sqlite3.h"
1717
#endif
1818

19-
int sqlite3_sqlitejs_init (sqlite3 *db, char **pzErrMsg, const sqlite3_api_routines *pApi);
19+
int sqlite3_js_init (sqlite3 *db, char **pzErrMsg, const sqlite3_api_routines *pApi);
2020
const char *sqlitejs_version (void);
2121

2222
#endif

test/sqlitejs/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ int main (void) {
3030
if (rc != SQLITE_OK) goto abort_test;
3131

3232
// manually load extension
33-
rc = sqlite3_sqlitejs_init(db, NULL, NULL);
33+
rc = sqlite3_js_init(db, NULL, NULL);
3434
if (rc != SQLITE_OK) goto abort_test;
3535

3636
printf("SQLite-JS version: %s\n\n", sqlitejs_version());

0 commit comments

Comments
 (0)