@@ -245,6 +245,11 @@ pub trait Dialect: Debug + Any {
245
245
false
246
246
}
247
247
248
+ /// Returns true if the dialect supports the `(+)` syntax for OUTER JOIN.
249
+ fn supports_outer_join_operator ( & self ) -> bool {
250
+ false
251
+ }
252
+
248
253
/// Returns true if the dialect supports CONNECT BY.
249
254
fn supports_connect_by ( & self ) -> bool {
250
255
false
@@ -346,15 +351,6 @@ pub trait Dialect: Debug + Any {
346
351
false
347
352
}
348
353
349
- /// Returns true if the dialect supports method calls, for example:
350
- ///
351
- /// ```sql
352
- /// SELECT (SELECT ',' + name FROM sys.objects FOR XML PATH(''), TYPE).value('.','NVARCHAR(MAX)')
353
- /// ```
354
- fn supports_methods ( & self ) -> bool {
355
- false
356
- }
357
-
358
354
/// Returns true if the dialect supports multiple variable assignment
359
355
/// using parentheses in a `SET` variable declaration.
360
356
///
@@ -559,6 +555,7 @@ pub trait Dialect: Debug + Any {
559
555
Token :: Word ( w) if w. keyword == Keyword :: SIMILAR => Ok ( p ! ( Like ) ) ,
560
556
Token :: Word ( w) if w. keyword == Keyword :: OPERATOR => Ok ( p ! ( Between ) ) ,
561
557
Token :: Word ( w) if w. keyword == Keyword :: DIV => Ok ( p ! ( MulDivModOp ) ) ,
558
+ Token :: Period => Ok ( p ! ( Period ) ) ,
562
559
Token :: Eq
563
560
| Token :: Lt
564
561
| Token :: LtEq
@@ -632,6 +629,7 @@ pub trait Dialect: Debug + Any {
632
629
/// Uses (APPROXIMATELY) <https://www.postgresql.org/docs/7.0/operators.htm#AEN2026> as a reference
633
630
fn prec_value ( & self , prec : Precedence ) -> u8 {
634
631
match prec {
632
+ Precedence :: Period => 100 ,
635
633
Precedence :: DoubleColon => 50 ,
636
634
Precedence :: AtTz => 41 ,
637
635
Precedence :: MulDivModOp => 40 ,
@@ -903,6 +901,7 @@ pub trait Dialect: Debug + Any {
903
901
/// higher number -> higher precedence
904
902
#[ derive( Debug , Clone , Copy ) ]
905
903
pub enum Precedence {
904
+ Period ,
906
905
DoubleColon ,
907
906
AtTz ,
908
907
MulDivModOp ,
0 commit comments