From 8082f786701b4b9dfee842bb3890dc26c80c8c3b Mon Sep 17 00:00:00 2001 From: Sebastian Luna Valero Date: Mon, 27 Nov 2017 15:53:42 +0000 Subject: [PATCH] allow multi-threaded sqlite3 operations --- CGAT/CSV2DB.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CGAT/CSV2DB.py b/CGAT/CSV2DB.py index 93ff6ce3..3b1ebb75 100644 --- a/CGAT/CSV2DB.py +++ b/CGAT/CSV2DB.py @@ -300,7 +300,7 @@ def run(infile, options, report_step=10000): elif options.backend == "sqlite": import sqlite3 - dbhandle = sqlite3.connect(options.database_name) + dbhandle = sqlite3.connect(options.database_name, check_same_thread=False) try: os.chmod(options.database_name, 0o664) except OSError as msg: