Skip to content

Commit b010da1

Browse files
BuonOmorafiss
authored andcommitted
fix(test): disable autocommit_before_ddl
1 parent 639a00f commit b010da1

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

test/config.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
default_connection: cockroachdb
22
connections:
33
cockroachdb:
4-
arunit:
4+
arunit: &arunit
55
min_messages: warning
66
host: 127.0.0.1
77
port: 26257
88
user: root
99
disable_cockroachdb_telemetry: true
10+
# `autocommit_before_ddl` changed to default true in CockroachDB v25.1.
11+
# This does not work with active record's test suite.
12+
#
13+
# This options keyword is referenced here in libpq:
14+
# https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNECT-OPTIONS
15+
options: "-c autocommit_before_ddl=false"
1016
arunit_without_prepared_statements:
11-
min_messages: warning
17+
<<: *arunit
1218
prepared_statements: false
13-
host: 127.0.0.1
14-
port: 26257
15-
user: root
16-
disable_cockroachdb_telemetry: true
1719
arunit2:
18-
min_messages: warning
19-
host: 127.0.0.1
20-
port: 26257
21-
user: root
22-
disable_cockroachdb_telemetry: true
20+
<<: *arunit

0 commit comments

Comments
 (0)