Skip large objects tests for CockroackDB

pull/955/head
Jack Christensen 2021-02-13 11:45:13 -06:00
parent 37884a20e7
commit 909398127d
1 changed files with 12 additions and 0 deletions

View File

@ -22,6 +22,10 @@ func TestLargeObjects(t *testing.T) {
t.Fatal(err)
}
if conn.PgConn().ParameterStatus("crdb_version") != "" {
t.Skip("Server does support large objects")
}
tx, err := conn.Begin(ctx)
if err != nil {
t.Fatal(err)
@ -48,6 +52,10 @@ func TestLargeObjectsPreferSimpleProtocol(t *testing.T) {
t.Fatal(err)
}
if conn.PgConn().ParameterStatus("crdb_version") != "" {
t.Skip("Server does support large objects")
}
tx, err := conn.Begin(ctx)
if err != nil {
t.Fatal(err)
@ -165,6 +173,10 @@ func TestLargeObjectsMultipleTransactions(t *testing.T) {
t.Fatal(err)
}
if conn.PgConn().ParameterStatus("crdb_version") != "" {
t.Skip("Server does support large objects")
}
tx, err := conn.Begin(ctx)
if err != nil {
t.Fatal(err)