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.
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user