mirror of https://github.com/jackc/pgx.git
Remove unnecessary allocation in rows.Values()
This was originally done to fix #386. But subsequent changes to pgtype render the allocation unnecessary. Tests put in place with the original fix still pass.pull/783/head
parent
4e50623069
commit
2758cbc0c4
2
rows.go
2
rows.go
|
@ -243,7 +243,7 @@ func (rows *connRows) Values() ([]interface{}, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if dt, ok := rows.connInfo.DataTypeForOID(fd.DataTypeOID); ok {
|
if dt, ok := rows.connInfo.DataTypeForOID(fd.DataTypeOID); ok {
|
||||||
value := pgtype.NewValue(dt.Value)
|
value := dt.Value
|
||||||
|
|
||||||
switch fd.Format {
|
switch fd.Format {
|
||||||
case TextFormatCode:
|
case TextFormatCode:
|
||||||
|
|
Loading…
Reference in New Issue