diff --git a/src/main/java/com/bib/essensbestellungsverwaltung/Database.java b/src/main/java/com/bib/essensbestellungsverwaltung/Database.java index 64fbd60..1cbb805 100644 --- a/src/main/java/com/bib/essensbestellungsverwaltung/Database.java +++ b/src/main/java/com/bib/essensbestellungsverwaltung/Database.java @@ -482,12 +482,12 @@ public class Database { sb.append(" SET "); sb.append(header[1]); sb.append(" = "); - sb.append(values[1]); + sb.append("'" + values[1] + "'"); for(int i = 2; i < header.length; i++){ sb.append(", "); sb.append(header[i]); sb.append(" = "); - sb.append(values[i]); + sb.append("'" + values[i] + "'"); } sb.append(" WHERE "); sb.append(header[0]);