SQLiteSQLite objects created in a thread can only be used in that same thread.

Posted Vax_Loves_1314

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SQLiteSQLite objects created in a thread can only be used in that same thread.相关的知识,希望对你有一定的参考价值。

明明加了锁保护,还是出了下面的问题

ProgrammingError: SQLite objects created in a thread can only be used in that same thread.The object was created in thread id 4460 and this is thread id 7608

解决方式: 

    sqlite3.connect(fp,check_same_thread = False)

亲测可用!

以上是关于SQLiteSQLite objects created in a thread can only be used in that same thread.的主要内容,如果未能解决你的问题,请参考以下文章

java 父类构造器

python-django-查询详解

python-django-查询详解

sh Crea nuovo虚拟主机

html Crea unburgermenùanimato

css Crea联合菜单水平