File tree 2 files changed +5
-0
lines changed 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -3727,6 +3727,8 @@ impl<'a> Parser<'a> {
3727
3727
// ignore the <separator> and treat the multiple strings as
3728
3728
// a single <literal>."
3729
3729
Token :: SingleQuotedString ( s) => Ok ( Some ( Ident :: with_quote ( '\'' , s) ) ) ,
3730
+ // Support for MySql dialect double qouted string, `AS "HOUR"` for example
3731
+ Token :: DoubleQuotedString ( s) => Ok ( Some ( Ident :: with_quote ( '\"' , s) ) ) ,
3730
3732
not_an_ident => {
3731
3733
if after_as {
3732
3734
return self . expected ( "an identifier after AS" , not_an_ident) ;
@@ -3810,6 +3812,7 @@ impl<'a> Parser<'a> {
3810
3812
match self . next_token ( ) {
3811
3813
Token :: Word ( w) => Ok ( w. to_ident ( ) ) ,
3812
3814
Token :: SingleQuotedString ( s) => Ok ( Ident :: with_quote ( '\'' , s) ) ,
3815
+ Token :: DoubleQuotedString ( s) => Ok ( Ident :: with_quote ( '\"' , s) ) ,
3813
3816
unexpected => self . expected ( "identifier" , unexpected) ,
3814
3817
}
3815
3818
}
Original file line number Diff line number Diff line change @@ -142,6 +142,8 @@ pub fn all_dialects() -> TestedDialects {
142
142
Box :: new( SnowflakeDialect { } ) ,
143
143
Box :: new( HiveDialect { } ) ,
144
144
Box :: new( RedshiftSqlDialect { } ) ,
145
+ Box :: new( MySqlDialect { } ) ,
146
+ Box :: new( BigQueryDialect { } ) ,
145
147
] ,
146
148
}
147
149
}
You can’t perform that action at this time.
0 commit comments