@@ -203,17 +203,17 @@ impl Parser {
203
203
// expression that should parse as the column name "date".
204
204
return_ok_if_some ! ( self . maybe_parse( |parser| {
205
205
match parser. parse_data_type( ) ? {
206
- DataType :: Interval => parser. parse_literal_interval( ) ,
207
- // Single-quoted strings are parsed as custom data types, however this not desirable
208
- // when we are handling input like `"NOT 'a' NOT LIKE 'b'"` because this will produce a
209
- // TypedString instead of a SingleQuotedString. Further, this leads to issues where the
210
- // same input will yield a BinaryOperator instead of the correct UnaryOperator. Here we
211
- // handle that specific case by returning an error.
212
- DataType :: Custom ( ..) => Err ( ParserError :: ParserError ( "" . to_string ( ) ) ) ,
213
- data_type => Ok ( Expr :: TypedString {
214
- data_type,
215
- value: parser. parse_literal_string( ) ?,
216
- } ) ,
206
+ DataType :: Interval => parser. parse_literal_interval( ) ,
207
+ // Single-quoted strings are parsed as custom data types, however this not desirable
208
+ // when we are handling input like `"NOT 'a' NOT LIKE 'b'"` because this will produce a
209
+ // TypedString instead of a SingleQuotedString. Further, this leads to issues where the
210
+ // same input will yield a BinaryOperator instead of the correct UnaryOperator. Here we
211
+ // handle that specific case by returning an error.
212
+ DataType :: Custom ( ..) => parser_err! ( "dummy" ) ,
213
+ data_type => Ok ( Expr :: TypedString {
214
+ data_type,
215
+ value: parser. parse_literal_string( ) ?,
216
+ } ) ,
217
217
}
218
218
} ) ) ;
219
219
0 commit comments