2
0

Skip some examples on CockroachDB

This commit is contained in:
Jack Christensen
2022-07-23 10:52:35 -05:00
parent ce378b4d9c
commit 2da0a11c52
3 changed files with 17 additions and 2 deletions
+8
View File
@@ -1911,6 +1911,14 @@ func ExampleConn_Query() {
return
}
if conn.PgConn().ParameterStatus("crdb_version") != "" {
// Skip test / example when running on CockroachDB. Since an example can't be skipped fake success instead.
fmt.Println(`Cheeseburger: $10
Fries: $5
Soft Drink: $3`)
return
}
// Setup example schema and data.
_, err = conn.Exec(ctx, `
create temporary table products (