Fix ADD SUGGESTION preprocessor transform to avoid ADD BOT keyword conflict
All checks were successful
BotServer CI/CD / build (push) Successful in 3m20s

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-04-12 15:32:31 -03:00
parent 78130caaa1
commit 9de9bc983b

View file

@ -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();