Fix decoding row with same type values
Row decoding was reusing and returning connection owned values for decoding. Instead allocate new value each time. fixes #313
This commit is contained in:
@@ -931,6 +931,13 @@ func TestRowDecode(t *testing.T) {
|
||||
time.Date(2015, 1, 1, 8, 12, 42, 0, time.UTC).Local(),
|
||||
},
|
||||
},
|
||||
{
|
||||
"select row(100.0::float, 1.09::float)",
|
||||
[]interface{}{
|
||||
float64(100),
|
||||
float64(1.09),
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
for i, tt := range tests {
|
||||
|
||||
Reference in New Issue
Block a user