From 19d1e6cdd6ff26e10e91d3d8e3256e6d2583d4f9 Mon Sep 17 00:00:00 2001 From: JunkJumper Date: Wed, 29 Apr 2020 15:18:48 +0200 Subject: [PATCH] BDD TableGenerator #4 --- src/database/DatabaseTesting.java | 4 ++-- src/database/QueryGenerator.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/database/DatabaseTesting.java b/src/database/DatabaseTesting.java index e0249ca..e5aad7c 100644 --- a/src/database/DatabaseTesting.java +++ b/src/database/DatabaseTesting.java @@ -13,9 +13,9 @@ import java.sql.Statement; public class DatabaseTesting { public static void main(String[] args) { Table a = new Table("a"); - a.remplirTableAllFrom("CartesLumiere"); + a.remplirTableAllFrom("CartesAll"); System.out.println(a.toString()); - //BufferedImage jpg = new BufferedImage(467, 652, 1); + BufferedImage jpg = new BufferedImage(467, 652, 1); /* diff --git a/src/database/QueryGenerator.java b/src/database/QueryGenerator.java index 24052bf..3ec85ee 100644 --- a/src/database/QueryGenerator.java +++ b/src/database/QueryGenerator.java @@ -15,7 +15,7 @@ public class QueryGenerator { } public static String getTable(String s) { - return "public.\"" + s + "\""; + return "public." + '"' + s + '"'; } }