mirror of https://github.com/jackc/pgx.git
Skip large objects tests for CockroackDB
parent
37884a20e7
commit
909398127d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue