Skip to content

Commit

Permalink
remove redundant substring
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Zhuravlev committed Jan 31, 2020
1 parent 915ff42 commit 4574863
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ private static String addFormatIfAbsent(final String sql, ClickHouseFormat forma
int idx = cleanSQL.endsWith(";")
? cleanSQL.length() - 1
: cleanSQL.length();
sb.append(cleanSQL.substring(0, idx))
sb.append(cleanSQL, 0, idx)
.append("\nFORMAT ")
.append(format.name())
.append(';');
Expand Down

0 comments on commit 4574863

Please sign in to comment.