File tree 4 files changed +5
-5
lines changed
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -582,7 +582,7 @@ pub trait Dialect: Debug + Any {
582
582
/// SELECT col_alias = col FROM tbl;
583
583
/// SELECT col_alias AS col FROM tbl;
584
584
/// ```
585
- fn supports_eq_alias_assigment ( & self ) -> bool {
585
+ fn supports_eq_alias_assignment ( & self ) -> bool {
586
586
false
587
587
}
588
588
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ impl Dialect for MsSqlDialect {
50
50
true
51
51
}
52
52
53
- fn supports_eq_alias_assigment ( & self ) -> bool {
53
+ fn supports_eq_alias_assignment ( & self ) -> bool {
54
54
true
55
55
}
56
56
Original file line number Diff line number Diff line change @@ -11235,7 +11235,7 @@ impl<'a> Parser<'a> {
11235
11235
left,
11236
11236
op : BinaryOperator :: Eq ,
11237
11237
right,
11238
- } if self . dialect . supports_eq_alias_assigment ( )
11238
+ } if self . dialect . supports_eq_alias_assignment ( )
11239
11239
&& matches ! ( left. as_ref( ) , Expr :: Identifier ( _) ) =>
11240
11240
{
11241
11241
let Expr :: Identifier ( alias) = * left else {
Original file line number Diff line number Diff line change @@ -11353,7 +11353,7 @@ fn test_any_some_all_comparison() {
11353
11353
11354
11354
#[ test]
11355
11355
fn test_alias_equal_expr ( ) {
11356
- let dialects = all_dialects_where ( |d| d. supports_eq_alias_assigment ( ) ) ;
11356
+ let dialects = all_dialects_where ( |d| d. supports_eq_alias_assignment ( ) ) ;
11357
11357
let sql = r#"SELECT some_alias = some_column FROM some_table"# ;
11358
11358
let expected = r#"SELECT some_column AS some_alias FROM some_table"# ;
11359
11359
let _ = dialects. one_statement_parses_to ( sql, expected) ;
@@ -11362,7 +11362,7 @@ fn test_alias_equal_expr() {
11362
11362
let expected = r#"SELECT (a * b) AS some_alias FROM some_table"# ;
11363
11363
let _ = dialects. one_statement_parses_to ( sql, expected) ;
11364
11364
11365
- let dialects = all_dialects_where ( |d| !d. supports_eq_alias_assigment ( ) ) ;
11365
+ let dialects = all_dialects_where ( |d| !d. supports_eq_alias_assignment ( ) ) ;
11366
11366
let sql = r#"SELECT x = (a * b) FROM some_table"# ;
11367
11367
let expected = r#"SELECT x = (a * b) FROM some_table"# ;
11368
11368
let _ = dialects. one_statement_parses_to ( sql, expected) ;
You can’t perform that action at this time.
0 commit comments