File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Orm/Xtensive.Orm/Sql/Internals Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 1- // Copyright (C) 2003 -2010 Xtensive LLC.
2- // All rights reserved .
3- // For conditions of distribution and use, see license .
1+ // Copyright (C) 2009 -2010 Xtensive LLC.
2+ // This code is distributed under MIT license terms .
3+ // See the License.txt file in the project root for more information .
44
55using System ;
66using System . Collections . Generic ;
@@ -112,8 +112,10 @@ public static bool IsBooleanExpression(SqlExpression node)
112112
113113 public static bool IsArithmeticExpression ( SqlExpression node )
114114 {
115- if ( node == null )
115+ if ( node == null ) {
116116 return true ;
117+ }
118+
117119 switch ( node . NodeType ) {
118120 case SqlNodeType . Add :
119121 case SqlNodeType . Avg :
@@ -148,6 +150,9 @@ public static bool IsArithmeticExpression(SqlExpression node)
148150 case SqlNodeType . DateTimeMinusInterval :
149151 case SqlNodeType . DateTimePlusInterval :
150152 case SqlNodeType . DateTimeMinusDateTime :
153+ case SqlNodeType . DateTimeOffsetMinusInterval :
154+ case SqlNodeType . DateTimeOffsetPlusInterval :
155+ case SqlNodeType . DateTimeOffsetMinusDateTimeOffset :
151156 return true ;
152157 case SqlNodeType . Variant :
153158 var variant = ( SqlVariant ) node ;
You can’t perform that action at this time.
0 commit comments