Sql file at startup produce an SQL Error Exception with H2 database [DATAJPA-933] #1287
Labels
in: core
Issues in core support
status: declined
A suggestion or change that we don't feel we should currently apply
type: bug
A general bug
spring-projects-issues commentedJul 20, 2016
Hervé DARRITCHON opened DATAJPA-933 and commented
Please find in Reference URL a link to my github repository with a simple project that produces the error. With a project using Spring Boot, Spring Data JPA, I put an sql file in classpath to initialize the embeded database (h2). The file is named
data-h2.sql
following the naming proposed in the documentation.In fact, the first sql line produces all the time an SQL Error even if it's a proper SQL command with a good syntax. I have found that because if I put "fake" sql command lile a truncate table and after I put my insert commands to initialize my database and I set in the propertie file:
The server start and the database is initialize but if I set the configuration spring.datasource.continue-on-error to false then there is an error at startup on the first sql command. Exemple of exception throws by the server at startup :
Affects: 1.9.4 (Gosling SR4)
Reference URL: https://github.com/herveDarritchon/spring-boot-issues
Attachments:
The text was updated successfully, but these errors were encountered: