DBA Data[Home] [Help]

APPS.AD_PATCH dependencies on AD_SNAPSHOT_BUGFIXES

Line 21: resulting in simpler joins. This function queries on AD_SNAPSHOT_BUGFIXES

17: **************************************************************************/
18:
19: /**************************************************************************
20: New version to go with new proposed data model changes (11.5.6 maybe),
21: resulting in simpler joins. This function queries on AD_SNAPSHOT_BUGFIXES
22: bug_status column to report the status of a bug.
23: With the snapshot project, and changes to the patch history data
24: model, the bug_status column is moved to ad_snapshot_bugfixes and hence
25: the query has to join on ad_snapshots,ad_snapshot_bugfixes and ad_bugs

Line 24: model, the bug_status column is moved to ad_snapshot_bugfixes and hence

20: New version to go with new proposed data model changes (11.5.6 maybe),
21: resulting in simpler joins. This function queries on AD_SNAPSHOT_BUGFIXES
22: bug_status column to report the status of a bug.
23: With the snapshot project, and changes to the patch history data
24: model, the bug_status column is moved to ad_snapshot_bugfixes and hence
25: the query has to join on ad_snapshots,ad_snapshot_bugfixes and ad_bugs
26: tables.
27: 2/15/02 : app_short_name is moved from AD_BUGS to AD_PATCH_RUN_BUGS
28: due to AOL's requirement, since AOL doesn't always know

Line 25: the query has to join on ad_snapshots,ad_snapshot_bugfixes and ad_bugs

21: resulting in simpler joins. This function queries on AD_SNAPSHOT_BUGFIXES
22: bug_status column to report the status of a bug.
23: With the snapshot project, and changes to the patch history data
24: model, the bug_status column is moved to ad_snapshot_bugfixes and hence
25: the query has to join on ad_snapshots,ad_snapshot_bugfixes and ad_bugs
26: tables.
27: 2/15/02 : app_short_name is moved from AD_BUGS to AD_PATCH_RUN_BUGS
28: due to AOL's requirement, since AOL doesn't always know
29: app_short_name to pass.

Line 63: l_bugst ad_snapshot_bugfixes.bug_status%type;

59: and ( b.baseline_name = adte.baseline
60: or b.generic_patch = 'y'
61: );
62:
63: l_bugst ad_snapshot_bugfixes.bug_status%type;
64: l_bugid ad_bugs.bug_id%type;
65: l_snapshot_id ad_snapshots.snapshot_id%type;
66:
67: l_row_found boolean := TRUE;

Line 105: from ad_snapshot_bugfixes

101: for cur_bugid in FIND_BUG_ID_CURSOR loop
102: l_row_found := TRUE;
103: begin
104: select bug_status into l_bugst
105: from ad_snapshot_bugfixes
106: where bugfix_id = cur_bugid.bug_id
107: and snapshot_id = l_snapshot_id;
108: exception
109: when no_data_found then

Line 164: l_bugst ad_snapshot_bugfixes.bug_status%type;

160: return varchar2
161: is
162: l_snapshot_id ad_snapshots.snapshot_id%type;
163: l_bug_id ad_bugs.bug_id%type;
164: l_bugst ad_snapshot_bugfixes.bug_status%type;
165: BEGIN
166:
167: if (p_appl_top_id = -1)
168: then

Line 212: from ad_snapshot_bugfixes

208:
209:
210: begin
211: select bug_status into l_bugst
212: from ad_snapshot_bugfixes
213: where bugfix_id = l_bug_id
214: and snapshot_id = l_snapshot_id;
215: exception
216: when no_data_found then

Line 433: cascade update AD_SNAPSHOT_BUGFIXES based on the values in AD_PATCH_RUN_BUGS.

429:
430:
431:
432: /*************************************************************************
433: cascade update AD_SNAPSHOT_BUGFIXES based on the values in AD_PATCH_RUN_BUGS.
434: - Don't update AD_SNAPSHOT_BUGFIXES at all if already set to the value
435: being updated.
436: - When updating to successful, just mark row in AD_SNAPSHOT_BUGFIXES
437: as successful.

Line 434: - Don't update AD_SNAPSHOT_BUGFIXES at all if already set to the value

430:
431:
432: /*************************************************************************
433: cascade update AD_SNAPSHOT_BUGFIXES based on the values in AD_PATCH_RUN_BUGS.
434: - Don't update AD_SNAPSHOT_BUGFIXES at all if already set to the value
435: being updated.
436: - When updating to successful, just mark row in AD_SNAPSHOT_BUGFIXES
437: as successful.
438: - When updating to unsuccessful, only mark row in AD_SNAPSHOT_BUGFIXES

Line 436: - When updating to successful, just mark row in AD_SNAPSHOT_BUGFIXES

432: /*************************************************************************
433: cascade update AD_SNAPSHOT_BUGFIXES based on the values in AD_PATCH_RUN_BUGS.
434: - Don't update AD_SNAPSHOT_BUGFIXES at all if already set to the value
435: being updated.
436: - When updating to successful, just mark row in AD_SNAPSHOT_BUGFIXES
437: as successful.
438: - When updating to unsuccessful, only mark row in AD_SNAPSHOT_BUGFIXES
439: as not successful if there are no rows in AD_PATCH_RUN_BUGS marked as
440: successful for the bug, product, and aru_release.

Line 438: - When updating to unsuccessful, only mark row in AD_SNAPSHOT_BUGFIXES

434: - Don't update AD_SNAPSHOT_BUGFIXES at all if already set to the value
435: being updated.
436: - When updating to successful, just mark row in AD_SNAPSHOT_BUGFIXES
437: as successful.
438: - When updating to unsuccessful, only mark row in AD_SNAPSHOT_BUGFIXES
439: as not successful if there are no rows in AD_PATCH_RUN_BUGS marked as
440: successful for the bug, product, and aru_release.
441: This routine updates AD_SNAPSHOT_BUGFIXES for given a patch_run_id and
442: a flag.

Line 441: This routine updates AD_SNAPSHOT_BUGFIXES for given a patch_run_id and

437: as successful.
438: - When updating to unsuccessful, only mark row in AD_SNAPSHOT_BUGFIXES
439: as not successful if there are no rows in AD_PATCH_RUN_BUGS marked as
440: successful for the bug, product, and aru_release.
441: This routine updates AD_SNAPSHOT_BUGFIXES for given a patch_run_id and
442: a flag.
443: *************************************************************************/
444: procedure mark_patch_bug_in_snpbgfix(p_appl_top_id in number,
445: p_patch_run_id in number,

Line 480: update AD_SNAPSHOT_BUGFIXES

476:
477:
478: if (p_flag = 'Y') then
479: begin
480: update AD_SNAPSHOT_BUGFIXES
481: set success_flag = p_flag
482: where snapshot_id = l_snapshot_id
483: and bugfix_id in (select bug_id from AD_PATCH_RUN_BUGS
484: where patch_run_id = p_patch_run_id);

Line 490: ' in AD_SNAPSHOT_BUGFIXES '||

486: g_errm := sqlerrm;
487: raise_application_error(-20001, g_errm ||
488: 'Error occurred in mark_patch_bug_in_snpbgfix() '||
489: 'while trying to update success_flag to Y '||
490: ' in AD_SNAPSHOT_BUGFIXES '||
491: 'for patch_run_id = ' || p_patch_run_id);
492: end;
493: elsif (p_flag = 'N') then
494: for mybugid in BUG_ID_CUR loop

Line 503: update AD_SNAPSHOT_BUGFIXES

499: end if;
500: end loop;
501: if (no_update = FALSE) then
502: begin
503: update AD_SNAPSHOT_BUGFIXES
504: set success_flag = p_flag
505: where bugfix_id = mybugid.bug_id
506: and snapshot_id = l_snapshot_id;
507: exception when others then

Line 512: ' in AD_SNAPSHOT_BUGFIXES '||

508: g_errm := sqlerrm;
509: raise_application_error(-20001, g_errm ||
510: 'Error occurred in mark_patch_bug_in_snpbgfix() '||
511: 'while trying to update success_flag to N '||
512: ' in AD_SNAPSHOT_BUGFIXES '||
513: 'for patch_run_id = ' || p_patch_run_id);
514: end;
515: end if;
516: no_update := FALSE;

Line 525: cascade update AD_SNAPSHOT_BUGFIXES based on the values in AD_PATCH_RUN_BUGS.

521: end if;
522: end mark_patch_bug_in_snpbgfix;
523:
524: /*************************************************************************
525: cascade update AD_SNAPSHOT_BUGFIXES based on the values in AD_PATCH_RUN_BUGS.
526: - Don't update AD_SNAPSHOT_BUGFIXES at all if already set to the value
527: being updated.
528: - When updating to successful, just mark row in AD_SNAPSHOT_BUGFIXES
529: as successful.

Line 526: - Don't update AD_SNAPSHOT_BUGFIXES at all if already set to the value

522: end mark_patch_bug_in_snpbgfix;
523:
524: /*************************************************************************
525: cascade update AD_SNAPSHOT_BUGFIXES based on the values in AD_PATCH_RUN_BUGS.
526: - Don't update AD_SNAPSHOT_BUGFIXES at all if already set to the value
527: being updated.
528: - When updating to successful, just mark row in AD_SNAPSHOT_BUGFIXES
529: as successful.
530: - When updating to unsuccessful, only mark row in AD_SNAPSHOT_BUGFIXES

Line 528: - When updating to successful, just mark row in AD_SNAPSHOT_BUGFIXES

524: /*************************************************************************
525: cascade update AD_SNAPSHOT_BUGFIXES based on the values in AD_PATCH_RUN_BUGS.
526: - Don't update AD_SNAPSHOT_BUGFIXES at all if already set to the value
527: being updated.
528: - When updating to successful, just mark row in AD_SNAPSHOT_BUGFIXES
529: as successful.
530: - When updating to unsuccessful, only mark row in AD_SNAPSHOT_BUGFIXES
531: as not successful if there are no rows in AD_PATCH_RUN_BUGS marked as
532: successful for the bug, product, and aru_release.

Line 530: - When updating to unsuccessful, only mark row in AD_SNAPSHOT_BUGFIXES

526: - Don't update AD_SNAPSHOT_BUGFIXES at all if already set to the value
527: being updated.
528: - When updating to successful, just mark row in AD_SNAPSHOT_BUGFIXES
529: as successful.
530: - When updating to unsuccessful, only mark row in AD_SNAPSHOT_BUGFIXES
531: as not successful if there are no rows in AD_PATCH_RUN_BUGS marked as
532: successful for the bug, product, and aru_release.
533: This routine updates AD_SNAPSHOT_BUGFIXES, given a patch_run, bug id.
534: *************************************************************************/

Line 533: This routine updates AD_SNAPSHOT_BUGFIXES, given a patch_run, bug id.

529: as successful.
530: - When updating to unsuccessful, only mark row in AD_SNAPSHOT_BUGFIXES
531: as not successful if there are no rows in AD_PATCH_RUN_BUGS marked as
532: successful for the bug, product, and aru_release.
533: This routine updates AD_SNAPSHOT_BUGFIXES, given a patch_run, bug id.
534: *************************************************************************/
535: procedure mark_bug_in_snpbgfix(p_patch_run_id in number,
536: p_appl_top_id in number,
537: p_bug_id in number,

Line 567: update AD_SNAPSHOT_BUGFIXES

563: end;
564:
565: if (p_flag = 'Y') then
566: begin
567: update AD_SNAPSHOT_BUGFIXES
568: set success_flag = p_flag
569: where bugfix_id = p_bug_id
570: and snapshot_id = l_snapshot_id;
571: exception when others then

Line 576: ' in AD_SNAPSHOT_BUGFIXES '||

572: g_errm := sqlerrm;
573: raise_application_error(-20001, g_errm ||
574: 'Error occurred in mark_bug_in_snpbgfix() '||
575: 'while trying to update success_flag to Y '||
576: ' in AD_SNAPSHOT_BUGFIXES '||
577: 'for patch_run_id = ' || p_patch_run_id);
578: end;
579: elsif (p_flag = 'N') then
580: for succ_rec in FIND_SUCC_CUR(p_bug_id) loop

Line 588: update AD_SNAPSHOT_BUGFIXES

584: end if;
585: end loop;
586: if (no_update = FALSE) then
587: begin
588: update AD_SNAPSHOT_BUGFIXES
589: set success_flag = p_flag
590: where bugfix_id = p_bug_id
591: and snapshot_id = l_snapshot_id;
592: exception when others then

Line 597: ' in AD_SNAPSHOT_BUGFIXES '||

593: g_errm := sqlerrm;
594: raise_application_error(-20001, g_errm ||
595: 'Error occurred in mark_bug_in_snpbgfix() '||
596: 'while trying to update success_flag to N '||
597: ' in AD_SNAPSHOT_BUGFIXES '||
598: 'for patch_run_id = ' || p_patch_run_id);
599: end;
600: end if;
601: no_update := FALSE;

Line 709: l_patch_succ ad_snapshot_bugfixes.success_flag%TYPE;

705: p_flag in varchar2,
706: p_reason_text in varchar2)
707: is
708: l_bug_id ad_bugs.bug_id%TYPE;
709: l_patch_succ ad_snapshot_bugfixes.success_flag%TYPE;
710:
711: begin
712:
713: -- get bug id from ad_bugs for the passed bug number and aru_release_name.

Line 805: -- cascade update AD_SNAPSHOT_BUGFIXES just like in mark_patch_succ

801:
802: end if;
803:
804: -- Case IV:
805: -- cascade update AD_SNAPSHOT_BUGFIXES just like in mark_patch_succ
806: -- above based on values in AD_PATCH_RUN_BUGS.
807:
808: mark_bug_in_snpbgfix(p_patch_run_id,p_appl_top_id,l_bug_id,p_flag);
809:

Line 832: l_snapshot_bug_id ad_snapshot_bugfixes.snapshot_bug_id%TYPE;

828: p_bug_status in varchar2)
829: is
830: l_bug_id ad_bugs.bug_id%TYPE;
831: l_snapshot_id ad_snapshots.snapshot_id%TYPE;
832: l_snapshot_bug_id ad_snapshot_bugfixes.snapshot_bug_id%TYPE;
833:
834: begin
835:
836: -- CASE I: On create, when there are no entries in AD_BUGS for the

Line 838: -- AD_SNAPSHOT_BUGFIXES.

834: begin
835:
836: -- CASE I: On create, when there are no entries in AD_BUGS for the
837: -- passed bug_number, aru_release_name. create a row in AD_BUGS and
838: -- AD_SNAPSHOT_BUGFIXES.
839:
840: -- First get the snapshot_id, from the given appl_top_id to work on.
841:
842: if (p_appl_top_id = -1)

Line 919: from AD_SNAPSHOT_BUGFIXES

915: end;
916:
917: begin
918: select snapshot_bug_id into l_snapshot_bug_id
919: from AD_SNAPSHOT_BUGFIXES
920: where bugfix_id = l_bug_id
921: and snapshot_id = l_snapshot_id;
922: exception
923: when no_data_found then

Line 924: -- create an entry in AD_SNAPSHOT_BUGFIXES

920: where bugfix_id = l_bug_id
921: and snapshot_id = l_snapshot_id;
922: exception
923: when no_data_found then
924: -- create an entry in AD_SNAPSHOT_BUGFIXES
925: begin
926: insert into AD_SNAPSHOT_BUGFIXES
927: (snapshot_bug_id,
928: snapshot_id,

Line 926: insert into AD_SNAPSHOT_BUGFIXES

922: exception
923: when no_data_found then
924: -- create an entry in AD_SNAPSHOT_BUGFIXES
925: begin
926: insert into AD_SNAPSHOT_BUGFIXES
927: (snapshot_bug_id,
928: snapshot_id,
929: bugfix_id,
930: bug_status,

Line 936: values (ad_snapshot_bugfixes_s.nextval,

932: creation_date,
933: last_update_date,
934: last_updated_by,
935: created_by)
936: values (ad_snapshot_bugfixes_s.nextval,
937: l_snapshot_id,
938: l_bug_id,
939: p_bug_status,
940: 'Y',

Line 949: 'into AD_SNAPSHOT_BUGFIXES for bug_number = '||

945: exception
946: when dup_val_on_index then
947: raise_application_error(-20001,
948: 'Attempting to insert a duplicate record '||
949: 'into AD_SNAPSHOT_BUGFIXES for bug_number = '||
950: p_bug_number || ' and release '||
951: p_release_name);
952:
953: when others then

Line 958: 'into AD_SNAPSHOT_BUGFIXES for bug_number = '||

954: g_errm := sqlerrm;
955: raise_application_error(-20001, g_errm ||
956: 'Error occurred in set_patch_status() '||
957: 'while trying to insert new record '||
958: 'into AD_SNAPSHOT_BUGFIXES for bug_number = '||
959: p_bug_number || ' and release '||
960: p_release_name);
961: end;
962:

Line 966: 'Too many rows in AD_SNAPSHOT_BUGFIXES '||

962:
963: when too_many_rows then
964: /* bug 2770858 Do not rollback */
965: raise_application_error(-20001,
966: 'Too many rows in AD_SNAPSHOT_BUGFIXES '||
967: 'table for '||p_bug_number||
968: ' '||p_release_name);
969: end;
970:

Line 972: -- AD_SNAPSHOT_BUGFIXES.

968: ' '||p_release_name);
969: end;
970:
971: -- If you are here means there was a record in AD_BUGS and
972: -- AD_SNAPSHOT_BUGFIXES.
973: -- So just update the existing record.
974:
975: begin
976: update AD_SNAPSHOT_BUGFIXES

Line 976: update AD_SNAPSHOT_BUGFIXES

972: -- AD_SNAPSHOT_BUGFIXES.
973: -- So just update the existing record.
974:
975: begin
976: update AD_SNAPSHOT_BUGFIXES
977: set BUG_STATUS = p_bug_status, success_flag = 'Y', last_updated_by = -1,
978: last_update_date = sysdate
979: where bugfix_id = l_bug_id and
980: snapshot_id = l_snapshot_id;

Line 986: 'in AD_SNAPSHOT_BUGFIXES '||

982: g_errm := sqlerrm;
983: raise_application_error(-20001, g_errm ||
984: 'Error occurred in set_patch_status() '||
985: 'while trying to update bug_status '||
986: 'in AD_SNAPSHOT_BUGFIXES '||
987: 'for bug_id = ' || l_bug_id);
988: end;
989:
990: end set_patch_status;