(t *testing.T)
| 905 | } |
| 906 | |
| 907 | func TestInsertBoolArray(t *testing.T) { |
| 908 | t.Parallel() |
| 909 | |
| 910 | ctx, cancel := context.WithTimeout(context.Background(), 120*time.Second) |
| 911 | defer cancel() |
| 912 | |
| 913 | pgxtest.RunWithQueryExecModes(ctx, t, defaultConnTestRunner, nil, func(ctx context.Context, t testing.TB, conn *pgx.Conn) { |
| 914 | if results := mustExec(t, conn, "create temporary table foo(spice bool[]);"); results.String() != "CREATE TABLE" { |
| 915 | t.Error("Unexpected results from Exec") |
| 916 | } |
| 917 | |
| 918 | // Accept parameters |
| 919 | if results := mustExec(t, conn, "insert into foo(spice) values($1)", []bool{true, false, true}); results.String() != "INSERT 0 1" { |
| 920 | t.Errorf("Unexpected results from Exec: %v", results) |
| 921 | } |
| 922 | }) |
| 923 | } |
| 924 | |
| 925 | func TestInsertTimestampArray(t *testing.T) { |
| 926 | t.Parallel() |
nothing calls this directly
no test coverage detected