Skip to content

Special syntax -- //@DELIMITER could cause SQL syntax error #182

Closed
@harawata

Description

@harawata

Initially reported in the mailing list.
https://groups.google.com/g/mybatis-user/c/v-2cgW7uwJc/m/VqUOuG-XAQAJ

When specifying a delimiter using the syntax with double slash, the line break on that line is not retained.
This could break the SQL statement following the delimiter line.

-- //@DELIMITER ~

The syntax without double slash is not affected by this bug.

-- @DELIMITER ~

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions