Skip to content

Commit

Permalink
Changed opt out flag to share_data
Browse files Browse the repository at this point in the history
  • Loading branch information
Sadibhatla committed Aug 8, 2024
1 parent 062b454 commit 9b5a227
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void copyDataToFile(Connection connection) {
writer.newLine();
long records = 0;
while (rs.next()) {
var line = getResponseLine(rs.getString("mbi"), rs.getDate("effective_date"), rs.getBoolean("opt_out_flag"));
var line = getResponseLine(rs.getString("mbi"), rs.getDate("effective_date"), rs.getBoolean("share_data"));
writer.write(line);
writer.newLine();
records++;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void copyDataToFileTest() throws IOException, SQLException {
var rs = new MockResultSet("");
rs.addColumn("mbi", Arrays.asList(MBI_1, MBI_2));
rs.addColumn("effective_date", Arrays.asList("2024-02-26", null));
rs.addColumn("opt_out_flag", Arrays.asList(true, null));
rs.addColumn("share_data", Arrays.asList(true, null));
when(connection.createStatement()).thenReturn(stmt);

when(getExecuteQuery(stmt)).thenReturn(rs);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class OptOutConstants {
public static final String CONF_FILE_NAME = "#EFT.ON.AB2D.NGD.CONF.";
public static final String CONF_FILE_NAME_PATTERN = "'D'yyMMdd.'T'HHmmsss";
public static final String UPDATE_STATEMENT = "UPDATE public.current_mbi\n" +
"SET opt_out_flag = ?, effective_date = current_date\n" +
"SET share_data = ?, effective_date = current_date\n" +
"WHERE mbi = ?";

private OptOutConstants() {
Expand Down

0 comments on commit 9b5a227

Please sign in to comment.