Skip to content

Commit

Permalink
Updated store ts text call in storeRow to use DATE_TABLE_TYPE
Browse files Browse the repository at this point in the history
  • Loading branch information
rma-bryson authored and adamkorynta committed Mar 28, 2024
1 parent 22c5157 commit 558851d
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import java.util.TimeZone;

import static java.lang.String.format;
import usace.cwms.db.jooq.codegen.udt.records.DATE_TABLE_TYPE;

public final class RegularTimeSeriesTextDao extends JooqDao {
private static final FluentLogger logger = FluentLogger.forEnclosingClass();
Expand Down Expand Up @@ -203,9 +204,11 @@ private void storeRow(Configuration configuration, String officeId, String tsId,
String textValue = regularTextTimeSeriesRow.getTextValue();
Instant dateTime = regularTextTimeSeriesRow.getDateTime();

CWMS_TEXT_PACKAGE.call_STORE_TS_TEXT(configuration, tsId, textValue, Timestamp.from(dateTime), Timestamp.from(dateTime),
DATE_TABLE_TYPE dateTableType = new DATE_TABLE_TYPE();
dateTableType.add(Timestamp.from(dateTime));
CWMS_TEXT_PACKAGE.call_STORE_TS_TEXT__2(configuration, tsId, textValue, dateTableType,
versionDate == null ? null : Timestamp.from(versionDate), "UTC",
"T", "T", "T", OracleTypeMap.formatBool(replaceAll), null, officeId);
"T", OracleTypeMap.formatBool(replaceAll), null, officeId);
}

public void delete(String officeId, String tsId, String textMask,
Expand Down

0 comments on commit 558851d

Please sign in to comment.