Skip to content

Commit 89b5b18

Browse files
cr
1 parent f2d7804 commit 89b5b18

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/dialect/mysql.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use crate::{
2727

2828
use super::keywords;
2929

30-
pub const RESERVED_FOR_TABLE_ALIAS_MYSQL: &[Keyword] =
30+
const RESERVED_FOR_TABLE_ALIAS_MYSQL: &[Keyword] =
3131
&[Keyword::USE, Keyword::IGNORE, Keyword::FORCE];
3232

3333
/// A [`Dialect`] for [MySQL](https://www.mysql.com/)
@@ -117,9 +117,6 @@ impl Dialect for MySqlDialect {
117117
true
118118
}
119119

120-
/// Returns true if the specified keyword should be parsed as a table factor alias.
121-
/// When explicit is true, the keyword is preceded by an `AS` word. Parser is provided
122-
/// to enable looking ahead if needed.
123120
fn is_table_factor_alias(&self, explicit: bool, kw: &Keyword, _parser: &mut Parser) -> bool {
124121
explicit
125122
|| (!keywords::RESERVED_FOR_TABLE_ALIAS.contains(kw)

0 commit comments

Comments
 (0)