File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
graalpython/com.oracle.graal.python.cext Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -174,12 +174,12 @@ simple_native_module("_mmap")
174
174
simple_native_module ("_cpython_sre" )
175
175
simple_native_module ("_cpython_unicodedata" )
176
176
simple_native_module ("_cpython_struct" )
177
+ simple_native_module ("_sqlite3" )
177
178
178
179
if (NOT WIN32 )
179
180
native_module ("_testcapi" FALSE "${SRC_DIR} /modules/_testcapi.c" )
180
181
simple_native_module ("_testmultiphase" )
181
182
simple_native_module ("_ctypes_test" )
182
- simple_native_module ("_sqlite3" )
183
183
184
184
###################### BZIP2 ########################
185
185
if (DEFINED LIBBZ2_BUILD_FILE )
Original file line number Diff line number Diff line change @@ -420,7 +420,10 @@ PyMODINIT_FUNC PyInit__sqlite3(void)
420
420
goto error ;
421
421
}
422
422
423
- if (PyModule_AddStringConstant (module , "sqlite_version" , sqlite3_libversion ())) {
423
+ /**
424
+ * GraalPy change: use SQLITE_VERSION from builtin sqlite3
425
+ */
426
+ if (PyModule_AddStringConstant (module , "sqlite_version" , SQLITE_VERSION )) {
424
427
goto error ;
425
428
}
426
429
Original file line number Diff line number Diff line change 39
39
* SOFTWARE.
40
40
*/
41
41
42
+ // prevent unresolved symbols
43
+ #define SQLITE_EXTERN
44
+
42
45
#include "_sqlite/cache.c"
43
46
#include "_sqlite/connection.c"
44
47
#include "_sqlite/cursor.c"
You can’t perform that action at this time.
0 commit comments