Skip to content

Commit 332af64

Browse files
jackcclaude
andcommitted
Skip TestConnQuerySanitizeSQLWithDollarQuotesStrings on CockroachDB
The test creates a canary table inside a transaction and relies on rollback to remove it. CockroachDB auto commits DDL, so the table survives the rollback and every subsequent run of the suite fails with "relation canary already exists". Skip it there, matching the other DDL in transaction tests. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent cc2ebd9 commit 332af64

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

query_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2256,6 +2256,7 @@ func TestQueryWithProcedureParametersInAndOut(t *testing.T) {
22562256

22572257
func TestConnQuerySanitizeSQLWithDollarQuotesStrings(t *testing.T) {
22582258
t.Parallel()
2259+
skipCockroachDB(t, "CockroachDB auto commits DDL by default")
22592260

22602261
conn := mustConnectString(t, os.Getenv("PGX_TEST_DATABASE"))
22612262
defer closeConn(t, conn)

0 commit comments

Comments
 (0)