refactor(schema)!: rename IntegerStringKind and DecimalStringKind (#21694)
Co-authored-by: cool-developer <51834436+cool-develope@users.noreply.github.com>
This commit is contained in:
co-authored by
cool-developer
parent
3bc707a5a2
commit
47561a93f2
@@ -88,9 +88,9 @@ func simpleColumnType(kind schema.Kind) string {
|
||||
return "BIGINT"
|
||||
case schema.Uint64Kind:
|
||||
return "NUMERIC"
|
||||
case schema.IntegerStringKind:
|
||||
case schema.IntegerKind:
|
||||
return "NUMERIC"
|
||||
case schema.DecimalStringKind:
|
||||
case schema.DecimalKind:
|
||||
return "NUMERIC"
|
||||
case schema.Float32Kind:
|
||||
return "REAL"
|
||||
|
||||
@@ -242,7 +242,7 @@ func (tm *objectIndexer) readCol(field schema.Field, value interface{}) (interfa
|
||||
str := nullStr.String
|
||||
|
||||
switch field.Kind {
|
||||
case schema.StringKind, schema.EnumKind, schema.IntegerStringKind, schema.DecimalStringKind:
|
||||
case schema.StringKind, schema.EnumKind, schema.IntegerKind, schema.DecimalKind:
|
||||
return str, nil
|
||||
case schema.Uint8Kind:
|
||||
value, err := strconv.ParseUint(str, 10, 8)
|
||||
|
||||
Reference in New Issue
Block a user