This commit is contained in:
yumoqing 2020-05-19 10:34:12 +08:00
parent d5a53f2e53
commit a52b6a8f05

View File

@ -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)