Update orm.py

This commit is contained in:
Mr Chen 2024-12-12 12:38:30 +08:00
parent 1b42bafc49
commit fc0b79f018
1 changed files with 1 additions and 1 deletions

View File

@ -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()