Skip to content

Commit 86178be

Browse files
authored
chore: use serializable as default isolation level (#2040)
1 parent 438dff4 commit 86178be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

samples/spring-data-jdbc/googlesql/src/main/resources/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ spanner.database=spring-data-jdbc
77

88
# Sets the isolation level that will be used by default for read/write transactions.
99
# Spanner supports the isolation levels SERIALIZABLE and REPEATABLE READ.
10-
spanner.default_isolation_level=REPEATABLE_READ
10+
spanner.default_isolation_level=SERIALIZABLE
1111

1212
# The sample by default uses the Spanner emulator.
1313
# Disable this flag to run the sample on a real Spanner instance.

samples/spring-data-mybatis/googlesql/src/main/resources/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ spanner.database=mybatis-sample
2121

2222
# Sets the isolation level that will be used by default for read/write transactions.
2323
# Spanner supports the isolation levels SERIALIZABLE and REPEATABLE READ.
24-
spanner.default_isolation_level=REPEATABLE_READ
24+
spanner.default_isolation_level=SERIALIZABLE
2525

2626
spring.datasource.url=jdbc:cloudspanner:${spanner.endpoint}/projects/${spanner.project}/instances/${spanner.instance}/databases/${spanner.database};default_isolation_level=${spanner.default_isolation_level};autoConfigEmulator=${spanner.emulator};${spanner.additional_properties}
2727
spring.datasource.driver-class-name=com.google.cloud.spanner.jdbc.JdbcDriver

0 commit comments

Comments
 (0)