mirror of https://github.com/jackc/pgx.git
Skip deferred constraint tests on CockroachDB
parent
c4e66b05de
commit
5a16bad252
|
@ -597,6 +597,10 @@ func TestConnBeginBatchDeferredError(t *testing.T) {
|
||||||
conn := mustConnectString(t, os.Getenv("PGX_TEST_DATABASE"))
|
conn := mustConnectString(t, os.Getenv("PGX_TEST_DATABASE"))
|
||||||
defer closeConn(t, conn)
|
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)")
|
||||||
|
}
|
||||||
|
|
||||||
mustExec(t, conn, `create temporary table t (
|
mustExec(t, conn, `create temporary table t (
|
||||||
id text primary key,
|
id text primary key,
|
||||||
n int not null,
|
n int not null,
|
||||||
|
|
|
@ -542,6 +542,10 @@ func TestConnQueryDeferredError(t *testing.T) {
|
||||||
conn := mustConnectString(t, os.Getenv("PGX_TEST_DATABASE"))
|
conn := mustConnectString(t, os.Getenv("PGX_TEST_DATABASE"))
|
||||||
defer closeConn(t, conn)
|
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)")
|
||||||
|
}
|
||||||
|
|
||||||
mustExec(t, conn, `create temporary table t (
|
mustExec(t, conn, `create temporary table t (
|
||||||
id text primary key,
|
id text primary key,
|
||||||
n int not null,
|
n int not null,
|
||||||
|
|
Loading…
Reference in New Issue