From 7534df32637f25d9e421dc44183b46bc595a4ec7 Mon Sep 17 00:00:00 2001 From: Johannes Kantz <67144859+JohannesKantz@users.noreply.github.com> Date: Sat, 4 Feb 2023 18:29:26 +0100 Subject: [PATCH] fix: update query quotes --- .../java/com/bib/essensbestellungsverwaltung/Database.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]);