Fix SQL statement in schema migration 120

Bug: Issue 4008
Change-Id: Ia341e1a54c97b144eb71f10993f89138dbfc2d82
This commit is contained in:
David Ostrovsky
2016-03-23 06:52:10 +01:00
parent b40933b368
commit 3b0b584967

View File

@@ -92,12 +92,12 @@ public class Schema_120 extends SchemaVersion {
ui.message("Generating Superproject subscriptions table to submodule ACLs");
try (Statement stmt = ((JdbcSchema) db).getConnection().createStatement();
ResultSet rs = stmt.executeQuery("SELECT " +
"key.super_project.project_name, " +
"key.super_project.branch_name, " +
"submodule.project_name " +
"submodule.branch_name " +
"FROM submodule_subscriptions");) {
ResultSet rs = stmt.executeQuery("SELECT "
+ "super_project_project_name, "
+ "super_project_branch_name, "
+ "submodule_project_name, "
+ "submodule_branch_name "
+ "FROM submodule_subscriptions");) {
while (rs.next()) {
Project.NameKey superproject = new Project.NameKey(rs.getString(1));
Branch.NameKey superbranch = new Branch.NameKey(superproject,