2
0

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:
Jack Christensen
2017-08-29 15:37:22 -05:00
parent ef9e5159bf
commit 47c0e9cbac
3 changed files with 22 additions and 1 deletions
+7
View File
@@ -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 {