Skip to content

Commit e8f9f50

Browse files
committed
Fixed some sql statements
1 parent 66ed7d6 commit e8f9f50

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/src/main/java/io/apicurio/registry/storage/impl/sql/CommonSqlStatements.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -658,8 +658,7 @@ public String deleteAllGroups() {
658658
*/
659659
@Override
660660
public String selectGroups() {
661-
// TODO pagination?
662-
return "SELECT g.* FROM groups g " + "ORDER BY g.groupId ASC LIMIT ?";
661+
return "SELECT g.* FROM groups g ORDER BY g.groupId ASC LIMIT ?";
663662
}
664663

665664
/**

app/src/main/java/io/apicurio/registry/storage/impl/sql/SQLServerSqlStatements.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ public String upsertContentReference() {
116116
MERGE INTO content_references AS target
117117
USING (VALUES (?, ?, ?, ?, ?)) AS source (contentId, groupId, artifactId, version, name)
118118
ON (target.contentId = source.contentId AND target.name = source.name)
119-
WHEN NOT MATCHED THEN", "INSERT (contentId, groupId, artifactId, version, name)
119+
WHEN NOT MATCHED THEN
120+
INSERT (contentId, groupId, artifactId, version, name)
120121
VALUES (source.contentId, source.groupId, source.artifactId, source.version, source.name)
121122
""";
122123
}
@@ -135,7 +136,7 @@ public String selectArtifactIds() {
135136
@Override
136137
public String selectGroups() {
137138
// TODO pagination?
138-
return "SELECT TOP (?) * FROM groups " + "ORDER BY groupId ASC";
139+
return "SELECT TOP (?) * FROM groups ORDER BY groupId ASC";
139140
}
140141

141142
@Override

0 commit comments

Comments
 (0)