(t *testing.T)
| 492 | } |
| 493 | |
| 494 | func TestConnQueryScanGoArray(t *testing.T) { |
| 495 | testWithAllQueryExecModes(t, func(t *testing.T, db *sql.DB) { |
| 496 | m := pgtype.NewMap() |
| 497 | |
| 498 | var a []int64 |
| 499 | err := db.QueryRow("select '{1,2,3}'::bigint[]").Scan(m.SQLScanner(&a)) |
| 500 | require.NoError(t, err) |
| 501 | assert.Equal(t, []int64{1, 2, 3}, a) |
| 502 | }) |
| 503 | } |
| 504 | |
| 505 | func TestConnQueryScanArray(t *testing.T) { |
| 506 | testWithAllQueryExecModes(t, func(t *testing.T, db *sql.DB) { |
nothing calls this directly
no test coverage detected