New table for deliveries
This commit is contained in:
parent
1969d2f98f
commit
b4b12b31a2
2 changed files with 18 additions and 4 deletions
|
@ -165,6 +165,8 @@ public class Database {
|
|||
query.append("status = " + (blocked.get() ? "'blocked'" : "'freezer'"));
|
||||
}
|
||||
|
||||
System.out.println(query.toString());
|
||||
|
||||
ResultSet result = stmt.executeQuery(query.toString());
|
||||
|
||||
// Rename the columns
|
||||
|
@ -267,6 +269,8 @@ public class Database {
|
|||
insertPallet.setString(2, new SimpleDateFormat("yyyy-MM-dd").format(new Date()));
|
||||
insertPallet.setString(3, "freezer");
|
||||
|
||||
System.out.println(insertPallet.toString());
|
||||
|
||||
insertPallet.executeUpdate();
|
||||
conn.commit();
|
||||
} catch (SQLException e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue