2
0

Expose EnumType directly instead of behind interface

This commit is contained in:
Jack Christensen
2020-05-12 10:41:50 -05:00
parent 9cdd928cb8
commit e92ee69901
2 changed files with 17 additions and 24 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ import (
"github.com/stretchr/testify/require"
)
func setupEnum(t *testing.T, conn *pgx.Conn) pgtype.EnumType {
func setupEnum(t *testing.T, conn *pgx.Conn) *pgtype.EnumType {
_, err := conn.Exec(context.Background(), "drop type if exists pgtype_enum_color;")
require.NoError(t, err)