Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,15 @@ class SqlTestDataAfterBlockCommentVisitor(
super.visitBlockComment(element)
if (hasOtherBindVariable(element)) return

val nextElement = element.nextSibling ?: return
val result = ValidationTestDataResult(element, shortName)
val nextElement = element.nextSibling
if (nextElement == null) {
result.highlightElement(holder)
return
}
if (isSqlLiteral(nextElement)) return
if (isMatchListTestData(element)) return

val result = ValidationTestDataResult(element, shortName)
result.highlightElement(holder)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ SELECT e.employee_id AS employeeId
AND e.age >= /*^ literalAge */99
AND e.sub_id IN /* subIds */(1, 2, 3)
AND e.sub_id IN /* subIds */(true, False, NULL)
AND e.final IN <error descr="Test data is required after a bind variable directive or a literal variable directive">/* literalAge */</error>
Loading