Skip to content

Commit dc5c282

Browse files
DaanHooglanddhslove
authored andcommitted
cloudstack-migrate-databases: sql AND added (apache#10033)
1 parent 6904750 commit dc5c282

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

framework/db/src/main/java/com/cloud/utils/crypt/EncryptionSecretKeyChanger.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ private void migrateTemplateDeployAsIsDetails(Connection conn) throws SQLExcepti
656656
String sqlTemplateDeployAsIsDetails = "SELECT template_deploy_as_is_details.value " +
657657
"FROM template_deploy_as_is_details JOIN vm_instance " +
658658
"WHERE template_deploy_as_is_details.template_id = vm_instance.vm_template_id " +
659-
"vm_instance.id = %s AND template_deploy_as_is_details.name = '%s' LIMIT 1";
659+
"AND vm_instance.id = %s AND template_deploy_as_is_details.name = '%s' LIMIT 1";
660660
try (PreparedStatement selectPstmt = conn.prepareStatement("SELECT id, vm_id, name, value FROM user_vm_deploy_as_is_details");
661661
ResultSet rs = selectPstmt.executeQuery();
662662
PreparedStatement updatePstmt = conn.prepareStatement("UPDATE user_vm_deploy_as_is_details SET value=? WHERE id=?")

0 commit comments

Comments
 (0)