Fix backquotes in text2sql causing execution errors (#7793)
### What problem does this PR solve? Remove the backquotes in the sql generated by LLM to prevent it from causing execution errors.   ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
9e80f39caa
commit
53b991aa0e
1 changed files with 1 additions and 0 deletions
|
|
@ -105,6 +105,7 @@ class ExeSQL(Generate, ABC):
|
|||
sql_res = []
|
||||
for i in range(len(input_list)):
|
||||
single_sql = input_list[i]
|
||||
single_sql = single_sql.replace('```','')
|
||||
while self._loop <= self._param.loop:
|
||||
self._loop += 1
|
||||
if not single_sql:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue