Skip to content

Add configurable SQL statement delimiter to ResourceDatabasePopulator and JDBC XML namespace. [SPR-7700] #12356

@spring-projects-issues

Description

@spring-projects-issues

Kyrill Alyoshin opened SPR-7700 and commented

It sure would be nice if org.springframework.jdbc.datasource.init.ResourceDatabasePopulator provided a way to configure its SQL statement delimiter. Currently it is hard-coded to ';'. It works great for simple statements, but what if need to load a stored-procedure where ';' cannot be stripped out?

Also, the delimiter configuration should probably be extended to the XML namespace too, as in:

<jdbc:embedded-database>
     <jdbc:script location="..." delimiter="/"/>
</jdbc:embedded-database>

Affects: 3.0.4

Issue Links:

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)status: duplicateA duplicate of another issuetype: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions