From cb5101a068aaf2498a76ac7c258d728f48fa3c86 Mon Sep 17 00:00:00 2001 From: Scott Macdonald <57190223+scmacdon@users.noreply.github.com> Date: Fri, 28 Oct 2022 06:26:26 -0400 Subject: [PATCH] Update WorkItemRepository.java --- .../src/main/java/com/aws/rest/WorkItemRepository.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/javav2/usecases/CreatingSpringRedshiftRest/src/main/java/com/aws/rest/WorkItemRepository.java b/javav2/usecases/CreatingSpringRedshiftRest/src/main/java/com/aws/rest/WorkItemRepository.java index 21618950691..a1be8c746fc 100644 --- a/javav2/usecases/CreatingSpringRedshiftRest/src/main/java/com/aws/rest/WorkItemRepository.java +++ b/javav2/usecases/CreatingSpringRedshiftRest/src/main/java/com/aws/rest/WorkItemRepository.java @@ -51,14 +51,14 @@ public List getData(String arch) { // Get all records from the Amazon Redshift table. if (arch.compareTo("") == 0) { - sqlStatement = "SELECT idwork, date, description, guide, status, username FROM work"; + sqlStatement = "SELECT idwork, date, description, guide, status, username, archive FROM work"; ExecuteStatementResponse response = executeAll(sqlStatement); String id = response.id(); System.out.println("The identifier of the statement is "+id); checkStatement(id); return getResults(id); } else { - sqlStatement = "SELECT idwork, date, description, guide, status, username " + + sqlStatement = "SELECT idwork, date, description, guide, status, username, archive " + "FROM work WHERE username = :username and archive = :arch ;"; parameters = List.of(