Bug fix - long to int cast problem
[habeas.git] / src / habeas / Utility.java
index 192b113..14edb1f 100644 (file)
@@ -355,14 +355,14 @@ public class Utility {
     }
 
     static boolean updateNoticeBillDetails(int selid, String bill_status, 
-            java.util.Date bill_date, int bill_amount) {
+            java.util.Date bill_date, long bill_amount) {
         try {
             Connection conn = DriverManager.getConnection(JDBC + connectionURL);
             PreparedStatement st = conn.prepareStatement("UPDATE legalnotices"
                     + " SET BillStatus=?,BillDate=?,BillAmount=? WHERE id=?;");
             st.setString (1, bill_status);
             st.setDate(2, toSqlDate(bill_date));
-            st.setInt(3, bill_amount);
+            st.setLong(3, bill_amount);
             st.setInt(4, selid);
             st.execute();
             conn.close();