Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion engine/schema/src/com/cloud/upgrade/dao/Upgrade30xBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@ public abstract class Upgrade30xBase implements DbUpgrade {
final static Logger s_logger = Logger.getLogger(Upgrade30xBase.class);

protected String getNetworkLabelFromConfig(Connection conn, String name) {
String sql = "SELECT value FROM `cloud`.`configuration` where name = '" + name + "'";
String sql = "SELECT value FROM `cloud`.`configuration` where name = ?";
String networkLabel = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
try {
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,name);
rs = pstmt.executeQuery();
if (rs.next()) {
networkLabel = rs.getString(1);
Expand Down