From cd2584a195b0520672efbbb2bccb3b56452c11a1 Mon Sep 17 00:00:00 2001 From: Eric Kidd Date: Wed, 18 Oct 2023 08:33:12 -0400 Subject: [PATCH] Add more known varargs SQL functions --- src/analyze.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/analyze.rs b/src/analyze.rs index 93b0620..76cae52 100644 --- a/src/analyze.rs +++ b/src/analyze.rs @@ -9,7 +9,7 @@ use crate::ast::{FunctionCall, SpecialDateFunctionCall, SqlProgram}; /// A `phf` set of functions that are known to take any number of arguments. static KNOWN_VARARG_FUNCTIONS: phf::Set<&'static str> = phf::phf_set! { - "COALESCE", "CONCAT", + "COALESCE", "CONCAT", "GREATEST", "LEAST", }; /// Count all the function calls in a [`SqlProgram`].