This commit is contained in:
yumoqing 2025-10-19 17:21:21 +08:00
parent 917a52f940
commit 9fb0f25bf0

View File

@ -310,9 +310,10 @@ class SQLor(object):
ret = await cur.fetchone() ret = await cur.fetchone()
debug(f'coro:sor.fetchone()={ret}, {type(ret)}') debug(f'coro:sor.fetchone()={ret}, {type(ret)}')
return ret return ret
# f = awaitify(cur.fetchone) ret = await cur.fetchone()
ret = cur.fetchone()
debug(f'func:sor.fetchone()={ret}, {type(ret)}') debug(f'func:sor.fetchone()={ret}, {type(ret)}')
if isinstance(ret, asyncio.Future):
ret = ret.result()
return ret return ret
async def execute(self, sql, value): async def execute(self, sql, value):