File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ impl Parser {
184
184
185
185
/// Parse an expression prefix
186
186
pub fn parse_prefix ( & mut self ) -> Result < Expr , ParserError > {
187
- // PostgreSQL allows any string literal to be prceded by a type name, indicating that the
187
+ // PostgreSQL allows any string literal to be preceded by a type name, indicating that the
188
188
// string literal represents a literal of that type. Some examples:
189
189
//
190
190
// DATE '2020-05-20'
@@ -198,8 +198,8 @@ impl Parser {
198
198
// INTERVAL '7' DAY
199
199
//
200
200
// Note also that naively `SELECT date` looks like a syntax error because the `date` type
201
- // name is not followed by a string literal, but in fact is a valid expression that should
202
- // parse as the column name "date".
201
+ // name is not followed by a string literal, but in fact in PostgreSQL it is a valid
202
+ // expression that should parse as the column name "date".
203
203
maybe ! ( self . maybe_parse( |parser| {
204
204
match parser. parse_data_type( ) ? {
205
205
DataType :: Interval => parser. parse_literal_interval( ) ,
You can’t perform that action at this time.
0 commit comments