File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1223,7 +1223,7 @@ pub trait Dialect: Debug + Any {
12231223 }
12241224
12251225 /// Returns true if the dialect considers the `&&` operator as a boolean AND operator.
1226- fn supports_overlap_as_and_operator ( & self ) -> bool {
1226+ fn supports_double_ampersand_operator ( & self ) -> bool {
12271227 false
12281228 }
12291229}
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ impl Dialect for MySqlDialect {
173173 }
174174
175175 /// See: <https://dev.mysql.com/doc/refman/8.4/en/expressions.html>
176- fn supports_overlap_as_and_operator ( & self ) -> bool {
176+ fn supports_double_ampersand_operator ( & self ) -> bool {
177177 true
178178 }
179179}
Original file line number Diff line number Diff line change @@ -3500,7 +3500,7 @@ impl<'a> Parser<'a> {
35003500 Token::Overlap if dialect_is!(dialect is PostgreSqlDialect | GenericDialect) => {
35013501 Some(BinaryOperator::PGOverlap)
35023502 }
3503- Token::Overlap if dialect.supports_overlap_as_and_operator () => {
3503+ Token::Overlap if dialect.supports_double_ampersand_operator () => {
35043504 Some(BinaryOperator::And)
35053505 }
35063506 Token::CaretAt if dialect_is!(dialect is PostgreSqlDialect | GenericDialect) => {
Original file line number Diff line number Diff line change @@ -18040,6 +18040,6 @@ fn parse_select_parenthesized_wildcard() {
1804018040
1804118041#[test]
1804218042fn parse_overlap_as_bool_and() {
18043- let dialects = all_dialects_where(|d| d.supports_overlap_as_and_operator ());
18043+ let dialects = all_dialects_where(|d| d.supports_double_ampersand_operator ());
1804418044 dialects.one_statement_parses_to("SELECT x && y", "SELECT x AND y");
1804518045}
You can’t perform that action at this time.
0 commit comments