@@ -15,7 +15,6 @@ ShapedQueryExpression shapedQueryExpression
1515 Visit ( shapedQueryExpression . ShaperExpression ) ) ,
1616 SetOperationBase setOperationExpression => VisitSetOperation ( setOperationExpression ) ,
1717 SelectExpression selectExpression => VisitSelect ( selectExpression ) ,
18- TpcTablesExpression tpcTablesExpression => VisitTpcTablesExpression ( tpcTablesExpression ) ,
1918 _ => base . VisitExtension ( extensionExpression )
2019 } ;
2120
@@ -40,40 +39,6 @@ private Expression VisitSetOperation(SetOperationBase setOperationExpression)
4039 }
4140 }
4241
43- #pragma warning disable EF1001
44- private Expression VisitTpcTablesExpression ( TpcTablesExpression tpcTablesExpression )
45- {
46- var parentState = _state ;
47-
48- if ( tpcTablesExpression . SelectExpressions . Count < 3 )
49- {
50- return base . VisitExtension ( tpcTablesExpression ) ;
51- }
52-
53- var changed = false ;
54- var visitedSelectExpressions = new SelectExpression [ tpcTablesExpression . SelectExpressions . Count ] ;
55-
56- _state = State . InNestedSetOperation ;
57- visitedSelectExpressions [ 0 ] = ( SelectExpression ) Visit ( tpcTablesExpression . SelectExpressions [ 0 ] ) ;
58- changed |= visitedSelectExpressions [ 0 ] != tpcTablesExpression . SelectExpressions [ 0 ] ;
59- _state = State . AlreadyCompensated ;
60-
61- for ( var i = 1 ; i < tpcTablesExpression . SelectExpressions . Count ; i ++ )
62- {
63- var selectExpression = tpcTablesExpression . SelectExpressions [ i ] ;
64- var visitedSelectExpression = ( SelectExpression ) Visit ( tpcTablesExpression . SelectExpressions [ i ] ) ;
65- visitedSelectExpressions [ i ] = visitedSelectExpression ;
66- changed |= selectExpression != visitedSelectExpression ;
67- }
68-
69- _state = parentState ;
70-
71- return changed
72- ? new TpcTablesExpression ( tpcTablesExpression . Alias , tpcTablesExpression . EntityType , visitedSelectExpressions )
73- : tpcTablesExpression ;
74- }
75- #pragma warning restore EF1001
76-
7742 private Expression VisitSelect ( SelectExpression selectExpression )
7843 {
7944 var changed = false ;
0 commit comments