bugfix
This commit is contained in:
parent
5c58c04440
commit
4d86499372
@ -237,8 +237,10 @@ class SQLor(object):
|
||||
|
||||
async def cur_execute(self, cur, sql, ns):
|
||||
if inspect.iscoroutinefunction(cur.execute):
|
||||
debug('-------coroutine-------')
|
||||
return await cur.execute(sql, ns)
|
||||
f = awaitify(cur.execute)
|
||||
debug('------function--------')
|
||||
return await f(sql, ns)
|
||||
|
||||
async def runVarSQL(self, cursor, sql, NS):
|
||||
@ -250,7 +252,7 @@ class SQLor(object):
|
||||
datas = self.dataConvert(datas)
|
||||
try:
|
||||
return await self.cur_execute(cursor,
|
||||
sql,
|
||||
markedSQL,
|
||||
datas)
|
||||
|
||||
except Exception as e:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user