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

(cherry picked from commit 030345c0bf)

Co-authored-by: Takuya Akiba <469803+iwiwi@users.noreply.github.com>
This commit is contained in:
Serhiy Storchaka 2018-04-01 01:03:50 +03:00 committed by GitHub
parent 25c869edd6
commit d918bbda4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}