added negative string number normalizations for the json field type

This commit is contained in:
Gani Georgiev
2023-10-27 22:36:16 +03:00
parent f889a3fcb3
commit 1ae570921b
3 changed files with 8 additions and 0 deletions

View File

@@ -310,6 +310,7 @@ func (f *SchemaField) PrepareValue(value any) any {
} else if str == "null" || str == "true" || str == "false" {
val = str
} else if ((str[0] >= '0' && str[0] <= '9') ||
str[0] == '-' ||
str[0] == '"' ||
str[0] == '[' ||
str[0] == '{') &&