parent
2a797f6f3b
commit
7448cd1305
2 changed files with 5 additions and 1 deletions
|
@ -86,6 +86,10 @@ impl Function {
|
|||
_ => unreachable!(),
|
||||
}
|
||||
}
|
||||
/// Check if this function is a custom function
|
||||
pub fn is_custom(&self) -> bool {
|
||||
matches!(self, Self::Custom(_, _))
|
||||
}
|
||||
/// Check if this function is a rolling function
|
||||
pub fn is_rolling(&self) -> bool {
|
||||
match self {
|
||||
|
|
|
@ -1417,7 +1417,7 @@ impl Value {
|
|||
Value::Block(v) => v.writeable(),
|
||||
Value::Array(v) => v.iter().any(Value::writeable),
|
||||
Value::Object(v) => v.iter().any(|(_, v)| v.writeable()),
|
||||
Value::Function(v) => v.args().iter().any(Value::writeable),
|
||||
Value::Function(v) => v.is_custom() || v.args().iter().any(Value::writeable),
|
||||
Value::Subquery(v) => v.writeable(),
|
||||
Value::Expression(v) => v.l.writeable() || v.r.writeable(),
|
||||
_ => false,
|
||||
|
|
Loading…
Reference in a new issue