Use pointer for decimal.Decimal
Fix breakage caused by 54efccb61ffe0a31b6a1908bdc8a35f491da01ea in https://github.com/shopspring/decimal
This commit is contained in:
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user