Skip to content

Commit 76d9e5e

Browse files
committed
possible workaround for Proxyprint H2 issue
1 parent 9407d41 commit 76d9e5e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

em/embedded/rest/proxyprint/src/main/java/em/embedded/io/github/proxyprint/kitchen/EmbeddedEvoMasterController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public String startSut() {
5656

5757
ctx = SpringApplication.run(WebAppConfig.class, new String[]{
5858
"--server.port=0",
59-
"--spring.datasource.url=jdbc:p6spy:h2:mem:testdb;DB_CLOSE_DELAY=-1;",
59+
"--spring.datasource.url=jdbc:p6spy:h2:mem:testdb;DB_CLOSE_DELAY=-1;MVCC=true;",
6060
"--spring.datasource.driver-class-name=" + P6SpyDriver.class.getName(),
6161
"--spring.jpa.database-platform=org.hibernate.dialect.H2Dialect",
6262
"--spring.datasource.username=sa",

em/external/rest/proxyprint/src/main/java/em/external/io/github/proxyprint/kitchen/ExternalEvoMasterController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public String[] getInputParameters() {
9494

9595
public String[] getJVMParameters() {
9696
return new String[]{
97-
"-Dspring.datasource.url=" + dbUrl(true) + ";DB_CLOSE_DELAY=-1",
97+
"-Dspring.datasource.url=" + dbUrl(true) + ";DB_CLOSE_DELAY=-1;MVCC=true",
9898
"-Dspring.datasource.driver-class-name=" + P6SpyDriver.class.getName(),
9999
"-Dspring.jpa.database-platform=org.hibernate.dialect.H2Dialect",
100100
"-Dspring.datasource.username=sa",

0 commit comments

Comments
 (0)