Skip to content

Commit

Permalink
Update WorkItemRepository.java
Browse files Browse the repository at this point in the history
  • Loading branch information
scmacdon authored Oct 28, 2022
1 parent d25fb51 commit cb5101a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ public List<WorkItem> 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(
Expand Down

0 comments on commit cb5101a

Please sign in to comment.