(span: SpanId)
| 218 | |
| 219 | #[coverage(off)] |
| 220 | pub(super) fn closure_application(span: SpanId) -> EvalDiagnostic { |
| 221 | let mut diagnostic = Diagnostic::new( |
| 222 | category(PostgresDiagnosticCategory::ClosureApplication), |
| 223 | Severity::Bug, |
| 224 | ) |
| 225 | .primary(Label::new(span, "closure call cannot be compiled to SQL")); |
| 226 | |
| 227 | diagnostic.add_message(Message::note( |
| 228 | "the statement placement pass should have rejected this from the Postgres backend", |
| 229 | )); |
| 230 | |
| 231 | diagnostic |
| 232 | } |
| 233 | |
| 234 | #[coverage(off)] |
| 235 | pub(super) fn closure_aggregate(span: SpanId) -> EvalDiagnostic { |
no test coverage detected