Skip to content

Commit 0633711

Browse files
committed
To have array in a hash we need to bind with :=
1 parent aeea1f5 commit 0633711

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/DBDish/Pg/StatementHandle.pm6

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,13 @@ method _row(:$hash) {
115115
$value = $res.Real
116116
}
117117
when 'Array<Int>' {
118-
$value = _pg-to-array( $res, 'Int' );
118+
$value := _pg-to-array( $res, 'Int' );
119119
}
120120
when 'Array<Str>' {
121-
$value = _pg-to-array( $res, 'Str' );
121+
$value := _pg-to-array( $res, 'Str' );
122122
}
123123
when 'Array<Num>' {
124-
$value = _pg-to-array( $res, 'Num' );
124+
$value := _pg-to-array( $res, 'Num' );
125125
}
126126
default {
127127
$value = $res;

0 commit comments

Comments
 (0)