diff options
Diffstat (limited to 'Modules/_sqlite/module.h')
-rw-r--r-- | Modules/_sqlite/module.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Modules/_sqlite/module.h b/Modules/_sqlite/module.h index a745096a8e..7ce8381df0 100644 --- a/Modules/_sqlite/module.h +++ b/Modules/_sqlite/module.h @@ -30,12 +30,19 @@ #define MODULE_NAME "sqlite3" typedef struct { + PyObject *DataError; PyObject *DatabaseError; PyObject *Error; + PyObject *IntegrityError; PyObject *InterfaceError; PyObject *InternalError; + PyObject *NotSupportedError; + PyObject *OperationalError; + PyObject *ProgrammingError; PyObject *Warning; + PyObject *lru_cache; + PyTypeObject *ConnectionType; PyTypeObject *CursorType; PyTypeObject *PrepareProtocolType; @@ -51,12 +58,6 @@ pysqlite_get_state(PyObject *Py_UNUSED(module)) return &pysqlite_global_state; } -extern PyObject* pysqlite_OperationalError; -extern PyObject* pysqlite_ProgrammingError; -extern PyObject* pysqlite_IntegrityError; -extern PyObject* pysqlite_DataError; -extern PyObject* pysqlite_NotSupportedError; - /* A dictionary, mapping column types (INTEGER, VARCHAR, etc.) to converter * functions, that convert the SQL value to the appropriate Python value. * The key is uppercase. |