Fix ADD SUGGESTION preprocessor transform to avoid ADD BOT keyword conflict
All checks were successful
BotServer CI/CD / build (push) Successful in 3m20s
All checks were successful
BotServer CI/CD / build (push) Successful in 3m20s
This commit is contained in:
parent
78130caaa1
commit
9de9bc983b
1 changed files with 4 additions and 1 deletions
|
|
@ -487,7 +487,10 @@ impl BasicCompiler {
|
|||
let normalized = trimmed
|
||||
.replace("FOR EACH", "FOR_EACH")
|
||||
.replace("EXIT FOR", "EXIT_FOR")
|
||||
.replace("GROUP BY", "GROUP_BY");
|
||||
.replace("GROUP BY", "GROUP_BY")
|
||||
.replace("ADD SUGGESTION TOOL", "ADD_SUGG_TOOL")
|
||||
.replace("ADD SUGGESTION TEXT", "ADD_SUGG_TEXT")
|
||||
.replace("ADD SUGGESTION", "ADD_SUGG");
|
||||
if normalized.starts_with("SET SCHEDULE") || trimmed.starts_with("SET SCHEDULE") {
|
||||
has_schedule = true;
|
||||
let parts: Vec<&str> = normalized.split('"').collect();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue