pub fn expression_references_domain( types: &dyn DomainTypeCatalog, expression: &Expr, targets: &BTreeSet<u32>, ) -> Result<bool, SQLError>