Commit 4d6e0506 authored by 金凯强's avatar 金凯强 🎨

测试

parent 8c7e63ee
......@@ -71,7 +71,7 @@ class DBDriver:
return res
res_dict = dict(map(lambda x, y: [x, y], fields, res))
cur.close()
# cur.close()
return res_dict
def query_sql(self, sql, *args, **kwargs):
......@@ -82,7 +82,7 @@ class DBDriver:
for r in res:
res_dict = OrderedDict(map(lambda x, y: [x, y], fields, r))
res_list.append(res_dict)
cur.close()
# cur.close()
return res_list
def __enter__(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment