mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-01 00:03:29 +00:00
feat(ChatAgent): ChatAgent doucument
add ChatAgent doucument
This commit is contained in:
parent
1937f6a4f6
commit
49cd0d4e57
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user