Skip to content

Commit

Permalink
Create table query creation refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
novotnyJiri committed Jan 15, 2024
1 parent 66a2866 commit 6cd6da9
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ public String createTableQuery(DatabaseTableMetadata databaseTableMetadata) {
}
builder.append("PRIMARY KEY (")
.append(databaseTableMetadata.getPrimary().getName())
.append("), ");
builder.delete(builder.length() - 2, builder.length())
.append(")");
.append("))");
String query = builder.toString();
LOG.debug("Created TABLE CREATE query: " + query);
return query;
Expand Down

0 comments on commit 6cd6da9

Please sign in to comment.