Skip to content

Commit 67a9db9

Browse files
authored
perf(contrib/drivers/pgsql): improve conversion performace for slice string (#4046)
1 parent e7fdf82 commit 67a9db9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/drivers/pgsql/pgsql_convert.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func (d *Driver) ConvertValueForLocal(ctx context.Context, fieldType string, fie
128128
if err := result.Scan(fieldValue); err != nil {
129129
return nil, err
130130
}
131-
return result, nil
131+
return []string(result), nil
132132

133133
default:
134134
return d.Core.ConvertValueForLocal(ctx, fieldType, fieldValue)

0 commit comments

Comments
 (0)