Commit 924035a5 authored by Serhiy Storchaka's avatar Serhiy Storchaka Committed by GitHub

[2.7] Fix error message in sqlite connection thread check. (GH-6028). (GH-6325)

(cherry picked from commit 030345c0)
Co-authored-by: default avatarTakuya Akiba <469803+iwiwi@users.noreply.github.com>
parent c498cd8b
......@@ -1106,8 +1106,8 @@ int pysqlite_check_thread(pysqlite_Connection* self)
if (self->check_same_thread) {
if (PyThread_get_thread_ident() != self->thread_ident) {
PyErr_Format(pysqlite_ProgrammingError,
"SQLite objects created in a thread can only be used in that same thread."
"The object was created in thread id %ld and this is thread id %ld",
"SQLite objects created in a thread can only be used in that same thread. "
"The object was created in thread id %ld and this is thread id %ld.",
self->thread_ident, PyThread_get_thread_ident());
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment