Skip to content

Commit

Permalink
feat: quote view index (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillKurdyukov authored Sep 4, 2024
1 parent c831519 commit ec11d35
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ protected Function<Select, CharSequence> getAfterFromTable() {

if (viewIndex != null && (viewIndex.tableName().isEmpty() ||
viewIndex.tableName().equals(tables.get(0).getName().toSql(IdentifierProcessing.NONE)))) {
return " VIEW " + viewIndex.indexName() + " AS " + tables.get(0).getReferenceName()
.toSql(INSTANCE.getIdentifierProcessing());
return " VIEW " + getIdentifierProcessing().quote(viewIndex.indexName()) +
" AS " + tables.get(0).getReferenceName().toSql(INSTANCE.getIdentifierProcessing());
}

return "";
Expand Down

0 comments on commit ec11d35

Please sign in to comment.