|
|
@@ -55,8 +55,7 @@ public class QuoteDaoImpl implements QuoteDao { |
|
|
|
try (Connection con = DriverManager.getConnection(url,usr,pass); |
|
|
|
PreparedStatement ps = con.prepareStatement(sql)){ |
|
|
|
ps.setInt(1, quote.getId()); |
|
|
|
int rowsUpdated = ps.executeUpdate(); |
|
|
|
System.out.println("Rows updated: " + rowsUpdated); |
|
|
|
ps.executeUpdate(); |
|
|
|
} catch (SQLException e) { |
|
|
|
e.printStackTrace(); |
|
|
|
} |
|
|
@@ -68,8 +67,7 @@ public class QuoteDaoImpl implements QuoteDao { |
|
|
|
try (Connection con = DriverManager.getConnection(url,usr,pass); |
|
|
|
PreparedStatement ps = con.prepareStatement(sql)){ |
|
|
|
ps.setInt(1, quote.getId()); |
|
|
|
int rowsUpdated = ps.executeUpdate(); |
|
|
|
System.out.println("Rows updated: " + rowsUpdated); |
|
|
|
ps.executeUpdate(); |
|
|
|
} catch (SQLException e) { |
|
|
|
e.printStackTrace(); |
|
|
|
} |