pub fn convert_expr_to_scalar_value( param: &Expr, t: &ConcreteDataType, ) -> Result<ScalarValue>
Convert an MySQL expression to a scalar value. It automatically handles the conversion of strings to numeric values.