Skip to content

Commit 66da50a

Browse files
committed
format macro body manually
1 parent 96cd22d commit 66da50a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/parser.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,8 @@ impl Parser {
201201
// Note also that naively `SELECT date` looks like a syntax error because the `date` type
202202
// name is not followed by a string literal, but in fact in PostgreSQL it is a valid
203203
// 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()? {
205206
DataType::Interval => parser.parse_literal_interval(),
206207
// Single-quoted strings are parsed as custom data types, however this not desirable
207208
// when we are handling input like `"NOT 'a' NOT LIKE 'b'"` because this will produce a
@@ -213,6 +214,7 @@ impl Parser {
213214
data_type,
214215
value: parser.parse_literal_string()?,
215216
}),
217+
}
216218
}));
217219

218220
let tok = self

0 commit comments

Comments
 (0)