From 49cd0d4e57e2e169813c85bd57f749f8781e6dd0 Mon Sep 17 00:00:00 2001 From: yhjun1026 <460342015@qq.com> Date: Fri, 20 Oct 2023 10:42:51 +0800 Subject: [PATCH] feat(ChatAgent): ChatAgent doucument add ChatAgent doucument --- pilot/connections/rdbms/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pilot/connections/rdbms/base.py b/pilot/connections/rdbms/base.py index 43b6a3993..82798a885 100644 --- a/pilot/connections/rdbms/base.py +++ b/pilot/connections/rdbms/base.py @@ -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: