Unverified Kaydet (Commit) d918bbda authored tarafından Serhiy Storchaka's avatar Serhiy Storchaka Kaydeden (comit) GitHub

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

(cherry picked from commit 030345c0)
Co-authored-by: 's avatarTakuya Akiba <469803+iwiwi@users.noreply.github.com>
üst 25c869ed
......@@ -1125,8 +1125,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