New table for deliveries

This commit is contained in:
Imbus 2024-05-05 12:51:01 +02:00
parent 1969d2f98f
commit b4b12b31a2
2 changed files with 18 additions and 4 deletions

View file

@ -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) {