File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -405,9 +405,8 @@ var _ sql.CollationCoercible = (*UnixTimestamp)(nil)
405405
406406const MaxUnixTimeMicroSecs = 32536771199999999
407407
408- // noEval returns true if the expression contains an expression that cannot be evaluated without sql.Context or sql.Row.
408+ // canEval returns if the expression contains an expression that cannot be evaluated without sql.Context or sql.Row.
409409func canEval (expr sql.Expression ) bool {
410- // Convert Timezone is not evaluable
411410 evaluable := true
412411 transform .InspectExpr (expr , func (e sql.Expression ) bool {
413412 switch e .(type ) {
Original file line number Diff line number Diff line change @@ -353,7 +353,7 @@ func (t datetimeType) Equals(otherType sql.Type) bool {
353353 if dtType , isDtType := otherType .(sql.DatetimeType ); isDtType {
354354 return t .baseType == dtType .Type () && t .precision == dtType .Precision ()
355355 }
356- return t . baseType == otherType . Type ()
356+ return false
357357}
358358
359359// MaxTextResponseByteLength implements the Type interface
You can’t perform that action at this time.
0 commit comments