(t *testing.T)
| 481 | } |
| 482 | |
| 483 | func TestConnSimpleSlicePassThrough(t *testing.T) { |
| 484 | testWithAllQueryExecModes(t, func(t *testing.T, db *sql.DB) { |
| 485 | skipCockroachDB(t, db, "Server does not support cardinality function") |
| 486 | |
| 487 | var n int64 |
| 488 | err := db.QueryRow("select cardinality($1::text[])", []string{"a", "b", "c"}).Scan(&n) |
| 489 | require.NoError(t, err) |
| 490 | assert.EqualValues(t, 3, n) |
| 491 | }) |
| 492 | } |
| 493 | |
| 494 | func TestConnQueryScanGoArray(t *testing.T) { |
| 495 | testWithAllQueryExecModes(t, func(t *testing.T, db *sql.DB) { |
nothing calls this directly
no test coverage detected