Skip to content

Spring embedded database fails to execute script after encoding changes [SPR-8562] #13206

@spring-projects-issues

Description

@spring-projects-issues

Luca Preziati opened SPR-8562 and commented

If the Script sql used to popolate Embedded Db, like this
<jdbc:embedded-database id="dataSourceTypeRegistry" type="H2" >
<jdbc:script location="file:c:/sviluppo/apache-tomcat-6/webapps/gedi-gfs-webapp/WEB-INF/sql/typeRegistryCreate.sql"/>
</jdbc:embedded-database>
contains new line in sql command, the import failed with uncomprensible error.

I think should be necessary throw a specific exception or better permit space and load the sql command separated by character ;


Affects: 3.0.4

Attachments:

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions