2
0

Add explicit enum support

This commit is contained in:
Jack Christensen
2020-05-05 13:31:32 -05:00
parent 71fb93a96c
commit f9ce8af5c9
4 changed files with 121 additions and 10 deletions
+6
View File
@@ -138,6 +138,12 @@ func TestConnCopyFromEnum(t *testing.T) {
require.NoError(t, err)
defer tx.Rollback(ctx)
_, err = tx.Exec(ctx, `drop type if exists color`)
require.NoError(t, err)
_, err = tx.Exec(ctx, `drop type if exists fruit`)
require.NoError(t, err)
_, err = tx.Exec(ctx, `create type color as enum ('blue', 'green', 'orange')`)
require.NoError(t, err)