Fix error message in sqlite connection thread check. (GH-6028)

(cherry picked from commit 030345c0bf)

Co-authored-by: Takuya Akiba <469803+iwiwi@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2018-03-26 09:01:22 -07:00 committed by GitHub
parent d01a805a38
commit 00765bb6ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1103,8 +1103,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 %lu and this is thread id %lu",
"SQLite objects created in a thread can only be used in that same thread. "
"The object was created in thread id %lu and this is thread id %lu.",
self->thread_ident, PyThread_get_thread_ident());
return 0;
}