mirror of
https://gitee.com/johng/gf
synced 2026-07-03 11:51:04 +08:00
perf(contrib/drivers/pgsql): improve conversion performace for slice string (#4046)
This commit is contained in:
@ -128,7 +128,7 @@ func (d *Driver) ConvertValueForLocal(ctx context.Context, fieldType string, fie
|
||||
if err := result.Scan(fieldValue); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return result, nil
|
||||
return []string(result), nil
|
||||
|
||||
default:
|
||||
return d.Core.ConvertValueForLocal(ctx, fieldType, fieldValue)
|
||||
|
||||
Reference in New Issue
Block a user