Update orm.py

pull/632/head
Mr Chen 5 months ago
parent 1b42bafc49
commit fc0b79f018
  1. 2
      web/core/orm.py

@ -129,7 +129,7 @@ class ORM:
def query(self, sql):
# 执行SQL语句返回数据集
if not self.__Conn():
return self.__DB_ERR
return None
try:
self.__DB_CUR.execute(sql)
result = self.__DB_CUR.fetchall()

Loading…
Cancel
Save