bugfix
This commit is contained in:
parent
9f12e041ce
commit
91e717d80f
11
sqlor/sor.py
11
sqlor/sor.py
@ -311,17 +311,6 @@ class SQLor(object):
|
||||
sqltype = self.getSqlType(sql)
|
||||
cur = self.cursor()
|
||||
ret = await self.runVarSQL(cur,sql,value)
|
||||
if sqltype == 'qry' and callback is not None:
|
||||
fields = [ i[0].lower() for i in cur.description ]
|
||||
while True:
|
||||
rec = await self.fetchone(cur)
|
||||
if rec is None:
|
||||
break
|
||||
dic = {}
|
||||
for i in range(len(fields)):
|
||||
dic.update({fields[i] : db_type_2_py_type(rec[i])})
|
||||
dic = DictObject(**dic)
|
||||
yield dic
|
||||
if sqltype == 'dml':
|
||||
self.dataChanged = True
|
||||
return ret
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user