Returns true if the expression contains a scalar subquery.
(&self)
| 2126 | |
| 2127 | /// Returns true if the expression contains a scalar subquery. |
| 2128 | pub fn contains_scalar_subquery(&self) -> bool { |
| 2129 | self.exists(|expr| Ok(matches!(expr, Expr::ScalarSubquery(_)))) |
| 2130 | .expect("exists closure is infallible") |
| 2131 | } |
| 2132 | |
| 2133 | /// Returns true if the expression node is volatile, i.e. whether it can return |
| 2134 | /// different results when evaluated multiple times with the same input. |