mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
prefix internal sqlite symbols with _pysqlite_ (GH-8215)
This commit is contained in:
parent
d6d4432724
commit
7762e4d387
4 changed files with 19 additions and 19 deletions
|
@ -617,7 +617,7 @@ void _pysqlite_func_callback(sqlite3_context* context, int argc, sqlite3_value**
|
|||
Py_DECREF(py_retval);
|
||||
}
|
||||
if (!ok) {
|
||||
if (_enable_callback_tracebacks) {
|
||||
if (_pysqlite_enable_callback_tracebacks) {
|
||||
PyErr_Print();
|
||||
} else {
|
||||
PyErr_Clear();
|
||||
|
@ -649,7 +649,7 @@ static void _pysqlite_step_callback(sqlite3_context *context, int argc, sqlite3_
|
|||
|
||||
if (PyErr_Occurred()) {
|
||||
*aggregate_instance = 0;
|
||||
if (_enable_callback_tracebacks) {
|
||||
if (_pysqlite_enable_callback_tracebacks) {
|
||||
PyErr_Print();
|
||||
} else {
|
||||
PyErr_Clear();
|
||||
|
@ -673,7 +673,7 @@ static void _pysqlite_step_callback(sqlite3_context *context, int argc, sqlite3_
|
|||
Py_DECREF(args);
|
||||
|
||||
if (!function_result) {
|
||||
if (_enable_callback_tracebacks) {
|
||||
if (_pysqlite_enable_callback_tracebacks) {
|
||||
PyErr_Print();
|
||||
} else {
|
||||
PyErr_Clear();
|
||||
|
@ -723,7 +723,7 @@ void _pysqlite_final_callback(sqlite3_context* context)
|
|||
Py_DECREF(function_result);
|
||||
}
|
||||
if (!ok) {
|
||||
if (_enable_callback_tracebacks) {
|
||||
if (_pysqlite_enable_callback_tracebacks) {
|
||||
PyErr_Print();
|
||||
} else {
|
||||
PyErr_Clear();
|
||||
|
@ -907,7 +907,7 @@ static int _authorizer_callback(void* user_arg, int action, const char* arg1, co
|
|||
ret = PyObject_CallFunction((PyObject*)user_arg, "issss", action, arg1, arg2, dbname, access_attempt_source);
|
||||
|
||||
if (ret == NULL) {
|
||||
if (_enable_callback_tracebacks)
|
||||
if (_pysqlite_enable_callback_tracebacks)
|
||||
PyErr_Print();
|
||||
else
|
||||
PyErr_Clear();
|
||||
|
@ -918,7 +918,7 @@ static int _authorizer_callback(void* user_arg, int action, const char* arg1, co
|
|||
if (PyLong_Check(ret)) {
|
||||
rc = _PyLong_AsInt(ret);
|
||||
if (rc == -1 && PyErr_Occurred()) {
|
||||
if (_enable_callback_tracebacks)
|
||||
if (_pysqlite_enable_callback_tracebacks)
|
||||
PyErr_Print();
|
||||
else
|
||||
PyErr_Clear();
|
||||
|
@ -945,7 +945,7 @@ static int _progress_handler(void* user_arg)
|
|||
ret = _PyObject_CallNoArg((PyObject*)user_arg);
|
||||
|
||||
if (!ret) {
|
||||
if (_enable_callback_tracebacks) {
|
||||
if (_pysqlite_enable_callback_tracebacks) {
|
||||
PyErr_Print();
|
||||
} else {
|
||||
PyErr_Clear();
|
||||
|
@ -980,7 +980,7 @@ static void _trace_callback(void* user_arg, const char* statement_string)
|
|||
if (ret) {
|
||||
Py_DECREF(ret);
|
||||
} else {
|
||||
if (_enable_callback_tracebacks) {
|
||||
if (_pysqlite_enable_callback_tracebacks) {
|
||||
PyErr_Print();
|
||||
} else {
|
||||
PyErr_Clear();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue