diff options
author | Christian Heimes <christian@python.org> | 2021-11-06 09:30:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-06 09:30:37 (GMT) |
commit | e9594f6747eaaaa848c26e2bf67d467aabfd62b3 (patch) | |
tree | 6e0cc5e3aa0a4fb9f924537842dc9b4987d46544 /Modules | |
parent | a4774f42e35861c4bb16928cffb011c2d8a285ac (diff) | |
download | cpython-e9594f6747eaaaa848c26e2bf67d467aabfd62b3.zip cpython-e9594f6747eaaaa848c26e2bf67d467aabfd62b3.tar.gz cpython-e9594f6747eaaaa848c26e2bf67d467aabfd62b3.tar.bz2 |
bpo-45731: Handle --enable-loadable-sqlite-extensions in configure (GH-29434)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_sqlite/clinic/connection.c.h | 10 | ||||
-rw-r--r-- | Modules/_sqlite/connection.c | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/Modules/_sqlite/clinic/connection.c.h b/Modules/_sqlite/clinic/connection.c.h index f9323eb..4e5ee50 100644 --- a/Modules/_sqlite/clinic/connection.c.h +++ b/Modules/_sqlite/clinic/connection.c.h @@ -367,7 +367,7 @@ exit: return return_value; } -#if !defined(SQLITE_OMIT_LOAD_EXTENSION) +#if defined(PY_SQLITE_ENABLE_LOAD_EXTENSION) PyDoc_STRVAR(pysqlite_connection_enable_load_extension__doc__, "enable_load_extension($self, enable, /)\n" @@ -398,9 +398,9 @@ exit: return return_value; } -#endif /* !defined(SQLITE_OMIT_LOAD_EXTENSION) */ +#endif /* defined(PY_SQLITE_ENABLE_LOAD_EXTENSION) */ -#if !defined(SQLITE_OMIT_LOAD_EXTENSION) +#if defined(PY_SQLITE_ENABLE_LOAD_EXTENSION) PyDoc_STRVAR(pysqlite_connection_load_extension__doc__, "load_extension($self, name, /)\n" @@ -440,7 +440,7 @@ exit: return return_value; } -#endif /* !defined(SQLITE_OMIT_LOAD_EXTENSION) */ +#endif /* defined(PY_SQLITE_ENABLE_LOAD_EXTENSION) */ PyDoc_STRVAR(pysqlite_connection_execute__doc__, "execute($self, sql, parameters=<unrepresentable>, /)\n" @@ -834,4 +834,4 @@ exit: #ifndef PYSQLITE_CONNECTION_LOAD_EXTENSION_METHODDEF #define PYSQLITE_CONNECTION_LOAD_EXTENSION_METHODDEF #endif /* !defined(PYSQLITE_CONNECTION_LOAD_EXTENSION_METHODDEF) */ -/*[clinic end generated code: output=0c3901153a3837a5 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=d71bf16bef67878f input=a9049054013a1b77]*/ diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c index f913267..964673a 100644 --- a/Modules/_sqlite/connection.c +++ b/Modules/_sqlite/connection.c @@ -1225,7 +1225,7 @@ pysqlite_connection_set_trace_callback_impl(pysqlite_Connection *self, Py_RETURN_NONE; } -#ifndef SQLITE_OMIT_LOAD_EXTENSION +#ifdef PY_SQLITE_ENABLE_LOAD_EXTENSION /*[clinic input] _sqlite3.Connection.enable_load_extension as pysqlite_connection_enable_load_extension |