Skip to content

Commit

Permalink
fix issue #2356
Browse files Browse the repository at this point in the history
  • Loading branch information
gqcn committed Feb 7, 2023
1 parent b64b295 commit b7badf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/gdb/gdb_core_structure.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ func (c *Core) CheckLocalTypeForField(ctx context.Context, fieldType string, fie

// ConvertValueForLocal converts value to local Golang type of value according field type name from database.
// The parameter `fieldType` is in lower case, like:
// `float`, `unsigned double`, `decimal`, `char`, `varchar`, etc.
// `float(5,2)`, `unsigned double(5,2)`, `decimal(10,2)`, `char(45)`, `varchar(100)`, etc.
func (c *Core) ConvertValueForLocal(ctx context.Context, fieldType string, fieldValue interface{}) (interface{}, error) {
// If there's no type retrieved, it returns the `fieldValue` directly
// to use its original data type, as `fieldValue` is type of interface{}.
Expand Down

0 comments on commit b7badf5

Please sign in to comment.