2
0

Use pointer for decimal.Decimal

Fix breakage caused by 54efccb61ffe0a31b6a1908bdc8a35f491da01ea in
https://github.com/shopspring/decimal
This commit is contained in:
Jack Christensen
2016-09-22 08:56:46 -05:00
parent b1a77cfa31
commit bcfb1f4d7c
+1 -1
View File
@@ -1282,7 +1282,7 @@ func TestConnQueryDatabaseSQLDriverValuer(t *testing.T) {
}
var num decimal.Decimal
err = conn.QueryRow("select $1::decimal", expected).Scan(&num)
err = conn.QueryRow("select $1::decimal", &expected).Scan(&num)
if err != nil {
t.Fatalf("Scan failed: %v", err)
}