(span: SpanId)
| 161 | |
| 162 | #[coverage(off)] |
| 163 | pub(super) fn entity_path_resolution(span: SpanId) -> EvalDiagnostic { |
| 164 | let mut diagnostic = Diagnostic::new( |
| 165 | category(PostgresDiagnosticCategory::EntityPathResolution), |
| 166 | Severity::Bug, |
| 167 | ) |
| 168 | .primary(Label::new( |
| 169 | span, |
| 170 | "cannot map this property access to a SQL column", |
| 171 | )); |
| 172 | |
| 173 | diagnostic.add_message(Message::note( |
| 174 | "indicates a mismatch between the entity type declaration and the SQL column mapping; \ |
| 175 | this can happen when they get out of sync", |
| 176 | )); |
| 177 | |
| 178 | diagnostic |
| 179 | } |
| 180 | |
| 181 | #[coverage(off)] |
| 182 | pub(super) fn invalid_env_access(span: SpanId) -> EvalDiagnostic { |
no test coverage detected