This commit is contained in:
yumoqing 2025-10-19 16:55:42 +08:00
parent 4d86499372
commit accd07844d

View File

@ -237,11 +237,13 @@ class SQLor(object):
async def cur_execute(self, cur, sql, ns): async def cur_execute(self, cur, sql, ns):
if inspect.iscoroutinefunction(cur.execute): if inspect.iscoroutinefunction(cur.execute):
debug('-------coroutine-------') ret = await cur.execute(sql, ns)
return await cur.execute(sql, ns) debug(f'-------coroutine--{ret}-{cur}----')
return ret
f = awaitify(cur.execute) f = awaitify(cur.execute)
debug('------function--------') ret = await f(sql, ns)
return await f(sql, ns) debug(f'------function--{ret}------')
return ret
async def runVarSQL(self, cursor, sql, NS): async def runVarSQL(self, cursor, sql, NS):
""" """