SkipCockroachDB calls Skip on t with msg if the connection is to a CockroachDB server.
(t testing.TB, conn *pgx.Conn, msg string)
| 149 | |
| 150 | // SkipCockroachDB calls Skip on t with msg if the connection is to a CockroachDB server. |
| 151 | func SkipCockroachDB(t testing.TB, conn *pgx.Conn, msg string) { |
| 152 | if conn.PgConn().ParameterStatus("crdb_version") != "" { |
| 153 | t.Skip(msg) |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | func SkipPostgreSQLVersionLessThan(t testing.TB, conn *pgx.Conn, minVersion int64) { |
| 158 | serverVersionStr := conn.PgConn().ParameterStatus("server_version") |