@@ -22,6 +22,8 @@ import (
2222
2323 "github.com/dolthub/doltgresql/core/id"
2424 "github.com/dolthub/doltgresql/postgres/parser/duration"
25+ "github.com/dolthub/doltgresql/postgres/parser/timeofday"
26+ "github.com/dolthub/doltgresql/postgres/parser/timetz"
2527 "github.com/dolthub/doltgresql/postgres/parser/uuid"
2628 "github.com/dolthub/doltgresql/server/compare"
2729 "github.com/dolthub/doltgresql/server/functions/framework"
@@ -572,7 +574,7 @@ var record_eq = framework.Function2{
572574
573575// time_eq_callable is the callable logic for the time_eq function.
574576func time_eq_callable (ctx * sql.Context , _ [3 ]* pgtypes.DoltgresType , val1 any , val2 any ) (any , error ) {
575- res , err := pgtypes .Time .Compare (ctx , val1 .(time. Time ), val2 .(time. Time ))
577+ res , err := pgtypes .Time .Compare (ctx , val1 .(timeofday. TimeOfDay ), val2 .(timeofday. TimeOfDay ))
576578 return res == 0 , err
577579}
578580
@@ -677,7 +679,7 @@ var timestamptz_eq = framework.Function2{
677679
678680// timetz_eq_callable is the callable logic for the timetz_eq function.
679681func timetz_eq_callable (ctx * sql.Context , _ [3 ]* pgtypes.DoltgresType , val1 any , val2 any ) (any , error ) {
680- res , err := pgtypes .TimeTZ .Compare (ctx , val1 .(time. Time ), val2 .(time. Time ))
682+ res , err := pgtypes .TimeTZ .Compare (ctx , val1 .(timetz. TimeTZ ), val2 .(timetz. TimeTZ ))
681683 return res == 0 , err
682684}
683685
0 commit comments