File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ impl<S: ContextProvider> SqlToRel<'_, S> {
49
49
let spans = operand. spans ( ) ;
50
50
let span = if let Some ( s) = spans. as_ref ( ) { s. first ( ) } else { None } ;
51
51
let diagnostic =
52
- Diagnostic :: new_error ( format ! ( "Unary operator '+' only supports numeric, interval and timestamp types" ) , span) ;
52
+ Diagnostic :: new_error ( "Unary operator '+' only supports numeric, interval and timestamp types" . to_string ( ) , span) ;
53
53
e. with_diagnostic ( diagnostic)
54
54
} )
55
55
}
Original file line number Diff line number Diff line change @@ -291,7 +291,6 @@ fn test_invalid_function() -> Result<()> {
291
291
fn test_unary_op_plus_with_non_column ( ) -> Result < ( ) > {
292
292
// create a table with a column of type varchar
293
293
let query = "SELECT /*whole*/+'a'/*whole*/ " ;
294
- let spans = get_spans ( query) ;
295
294
let diag = do_query ( query) ;
296
295
assert_eq ! (
297
296
diag. message,
You can’t perform that action at this time.
0 commit comments