(t *testing.T)
| 462 | } |
| 463 | |
| 464 | func TestConnQueryRowByteSlice(t *testing.T) { |
| 465 | testWithAllQueryExecModes(t, func(t *testing.T, db *sql.DB) { |
| 466 | expected := []byte{222, 173, 190, 239} |
| 467 | var actual []byte |
| 468 | |
| 469 | err := db.QueryRow(`select E'\\xdeadbeef'::bytea`).Scan(&actual) |
| 470 | require.NoError(t, err) |
| 471 | require.EqualValues(t, expected, actual) |
| 472 | }) |
| 473 | } |
| 474 | |
| 475 | func TestConnQueryFailure(t *testing.T) { |
| 476 | testWithAllQueryExecModes(t, func(t *testing.T, db *sql.DB) { |
nothing calls this directly
no test coverage detected