Skip to content

Commit d154515

Browse files
sql/ydb: added enum type handling in type formatting
1 parent f874fb9 commit d154515

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sql/ydb/convert.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ func FormatType(typ schema.Type) (string, error) {
4747
formatted = TypeUUID
4848
case *schema.TimeType:
4949
formatted, err = formatTimeType(t)
50+
case *schema.EnumType:
51+
err = errors.New("ydb: Enum can't be used as column data types for tables")
5052
case *schema.UnsupportedType:
5153
err = fmt.Errorf("ydb: unsupported type: %q", t.T)
5254
default:

0 commit comments

Comments
 (0)