diff --git a/tx_test.go b/tx_test.go index 6a5e2d3f..3ca924e9 100644 --- a/tx_test.go +++ b/tx_test.go @@ -105,6 +105,10 @@ func TestTxCommitWhenDeferredConstraintFailure(t *testing.T) { conn := mustConnectString(t, os.Getenv("PGX_TEST_DATABASE")) defer closeConn(t, conn) + if conn.PgConn().ParameterStatus("crdb_version") != "" { + t.Skip("Server does not support deferred constraint (https://github.com/cockroachdb/cockroach/issues/31632)") + } + createSql := ` create temporary table foo( id integer,