Skip to content

Commit d0cd7b9

Browse files
committed
CDA-96 Fixes issue with updating instance caused by a null insert
1 parent 476a88b commit d0cd7b9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

schema/src/cwms/cwms_fcst_pkg_body.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,10 @@ begin
526526
||'/'||to_char(l_fcst_time_utc, 'yyyy-mm-dd"T"hh24:mi:ss"Z"')
527527
||'/'||to_char(l_issue_time_utc, 'yyyy-mm-dd"T"hh24:mi:ss"Z"'));
528528
end if;
529+
select *
530+
into l_fcst_inst_rec
531+
from at_fcst_inst
532+
where fcst_inst_code = l_fcst_inst_code;
529533
end if;
530534
-------------------------------------
531535
-- populate instance record fields --

0 commit comments

Comments
 (0)