refactor(schema)!: rename IntegerStringKind and DecimalStringKind (#21694)

Co-authored-by: cool-developer <51834436+cool-develope@users.noreply.github.com>
This commit is contained in:
Aaron Craelius
2024-09-14 01:45:15 +00:00
committed by GitHub
co-authored by cool-developer
parent 3bc707a5a2
commit 47561a93f2
9 changed files with 86 additions and 84 deletions
+2 -2
View File
@@ -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"
+1 -1
View File
@@ -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)