From a52b6a8f0563a3659b16adf5ff6719ad2f61bf67 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 19 May 2020 10:34:12 +0800 Subject: [PATCH] bugfix --- sqlor/sor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlor/sor.py b/sqlor/sor.py index 6f2569e..79067ea 100644 --- a/sqlor/sor.py +++ b/sqlor/sor.py @@ -244,7 +244,7 @@ class SQLor(object): cur = self.cursor() markedSQL,datas = self.maskingSQL(sql,{}) datas = [ self.dataConvert(d) for d in values ] - if async_mode: + if self.async_mode: await cur.executemany(markedSQL,datas) else: cur.executemany(markedSQL,datas)