I have some problems with using a schema.sql file to create my sql schema when executing a junit test while this schema contains mysql specific expression. I have to add the
You need to set MYSQL mode on h2 and disable replacing of datasource url for embedded database:
MYSQL
Modify application-test.yaml
application-test.yaml
spring: datasource: url: jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=false;MODE=MYSQL test: database: replace: NONE