mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Fix Text2SQL (#2131)
### What problem does this PR solve? Fix exeSQL component Update DB Assistant template Fix canvas Message window size ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --------- Co-authored-by: Kevin Hu <kevinhu.sh@gmail.com>
This commit is contained in:
@ -77,7 +77,7 @@ class ExeSQL(ComponentBase, ABC):
|
||||
except Exception as e:
|
||||
return ExeSQL.be_output("**Error**: \nDatabase Connection Failed! \n" + str(e))
|
||||
sql_res = []
|
||||
for single_sql in re.split(r';', ans):
|
||||
for single_sql in re.split(r';', ans.replace(r"\n", " ")):
|
||||
if not single_sql:
|
||||
continue
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user