Skip to content

Commit ec11d35

Browse files
feat: quote view index (#153)
1 parent c831519 commit ec11d35

File tree

1 file changed

+2
-2
lines changed
  • spring-data-jdbc-ydb/src/main/java/tech/ydb/data/core/dialect

1 file changed

+2
-2
lines changed

spring-data-jdbc-ydb/src/main/java/tech/ydb/data/core/dialect/YdbDialect.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ protected Function<Select, CharSequence> getAfterFromTable() {
6565

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

7272
return "";

0 commit comments

Comments
 (0)