File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -201,7 +201,8 @@ impl Parser {
201
201
// Note also that naively `SELECT date` looks like a syntax error because the `date` type
202
202
// name is not followed by a string literal, but in fact in PostgreSQL it is a valid
203
203
// expression that should parse as the column name "date".
204
- return_ok_if_some ! ( self . maybe_parse( |parser| match parser. parse_data_type( ) ? {
204
+ return_ok_if_some ! ( self . maybe_parse( |parser| {
205
+ match parser. parse_data_type( ) ? {
205
206
DataType :: Interval => parser. parse_literal_interval( ) ,
206
207
// Single-quoted strings are parsed as custom data types, however this not desirable
207
208
// when we are handling input like `"NOT 'a' NOT LIKE 'b'"` because this will produce a
@@ -213,6 +214,7 @@ impl Parser {
213
214
data_type,
214
215
value: parser. parse_literal_string( ) ?,
215
216
} ) ,
217
+ }
216
218
} ) ) ;
217
219
218
220
let tok = self
You can’t perform that action at this time.
0 commit comments