Skip to content

Support comments within SQL statements in ResourceDatabasePopulator [SPR-10075] #14708

@spring-projects-issues

Description

@spring-projects-issues

Sam Brannen opened SPR-10075 and commented

Status Quo

The deficiency addressed by this issue is the same as that described in #14616 but for ResourceDatabasePopulator.

Deliverables

Refactor ResourceDatabasePopulator.splitSqlScript(String, String, String, List) so that:

  1. Standard SQL comments (i.e., any text beginning with two hyphens and extending to the end of the line) are properly omitted from the statement before executing it.
  2. Multiple adjacent whitespace characters within a statement but outside a literal are collapsed into a single space.

Affects: 3.1.3

Issue Links:

Referenced from: commits 8a422f4, aa16caa

Metadata

Metadata

Assignees

Labels

in: dataIssues in data modules (jdbc, orm, oxm, tx)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions