feat(ChatAgent): ChatAgent doucument

add ChatAgent doucument
This commit is contained in:
yhjun1026 2023-10-20 10:42:51 +08:00
parent 1937f6a4f6
commit 49cd0d4e57

View File

@ -349,7 +349,7 @@ class RDBMSDatabase(BaseConnect):
def run(self, command: str, fetch: str = "all") -> List:
"""Execute a SQL command and return a string representing the results."""
print("SQL:" + command)
if not command:
if not command or len(command) <0:
return []
parsed, ttype, sql_type, table_name = self.__sql_parse(command)
if ttype == sqlparse.tokens.DML: