Method
build_multi_column_diagnostic
(
&self,
spans: &Spans,
error_message: &str,
help_message: &str,
)
Source from the content-addressed store, hash-verified
| 144 | } |
| 145 | |
| 146 | fn build_multi_column_diagnostic( |
| 147 | &self, |
| 148 | spans: &Spans, |
| 149 | error_message: &str, |
| 150 | help_message: &str, |
| 151 | ) -> Diagnostic { |
| 152 | let full_span = Span::union_iter(spans.0.iter().cloned()); |
| 153 | let mut diagnostic = Diagnostic::new_error(error_message, full_span); |
| 154 | |
| 155 | for (i, span) in spans.iter().skip(1).enumerate() { |
| 156 | diagnostic.add_note(format!("Extra column {}", i + 1), Some(*span)); |
| 157 | } |
| 158 | |
| 159 | diagnostic.add_help(help_message, None); |
| 160 | diagnostic |
| 161 | } |
| 162 | |
| 163 | pub(super) fn parse_set_comparison_subquery( |
| 164 | &self, |
Tested by
no test coverage detected