From accd07844d3abc5e06b4a0f71140ac41b3e1e237 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 19 Oct 2025 16:55:42 +0800 Subject: [PATCH] bugfix --- sqlor/sor.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sqlor/sor.py b/sqlor/sor.py index 4d4b485..43e0b2c 100755 --- a/sqlor/sor.py +++ b/sqlor/sor.py @@ -237,11 +237,13 @@ class SQLor(object): async def cur_execute(self, cur, sql, ns): if inspect.iscoroutinefunction(cur.execute): - debug('-------coroutine-------') - return await cur.execute(sql, ns) + ret = await cur.execute(sql, ns) + debug(f'-------coroutine--{ret}-{cur}----') + return ret f = awaitify(cur.execute) - debug('------function--------') - return await f(sql, ns) + ret = await f(sql, ns) + debug(f'------function--{ret}------') + return ret async def runVarSQL(self, cursor, sql, NS): """