|
1 | 1 | /*********************************************************************** |
2 | | -* Copyright (C) 2005-2014,2020,2021 by Progress Software Corporation. * |
| 2 | +* Copyright (C) 2005-2014,2020,2021,2022 by Progress Software Corporation. * |
3 | 3 | * All rights reserved. Prior versions of this work may contain * |
4 | 4 | * portions contributed by participants of Possenet. * |
5 | 5 | * * |
@@ -99,8 +99,9 @@ History: |
99 | 99 | tmasood 05/19/2021 Handle the blank value passed in DUMP_INC_INDEXMODE |
100 | 100 | tmasood 08/03/2021 Generate incrdump.e in temp-dir if write access are not provided |
101 | 101 | tmasood 10/18/2021 DROP FIELD opearation goes under PostDeploy section |
102 | | - tmasood 11/24/2021 Index field should not be dumped under PostDeploy section |
103 | | - tmasood 11/26/2021 Fixed error 138 while dumping LOB field |
| 102 | + tmasood 11/24/2021 Index field should not be dumped under PostDeploy section |
| 103 | + tmasood 11/26/2021 Fixed error 138 while dumping LOB field |
| 104 | + tmasood 08/08/2022 Added the availability check to fix the error 91 |
104 | 105 | */ |
105 | 106 |
|
106 | 107 | using Progress.Lang.*. |
@@ -1570,7 +1571,9 @@ DO ON STOP UNDO, LEAVE |
1570 | 1571 | drop-list.f2-name = field-list.f2-name. |
1571 | 1572 | /* Cannot drop an LOB field online |
1572 | 1573 | In one transaction, only one field can be dropped as online. PostDeploy will have one DROP FIELD operation */ |
1573 | | - IF NOT (DICTDB2._Field._Data-type = "CLOB" OR DICTDB2._Field._Data-type = "BLOB") AND NOT lDrpFldOnline |
| 1574 | + IF AVAILABLE(DICTDB2._Field) |
| 1575 | + AND NOT (DICTDB2._Field._Data-type = "CLOB" OR DICTDB2._Field._Data-type = "BLOB") |
| 1576 | + AND NOT lDrpFldOnline |
1574 | 1577 | AND NOT inindex(INPUT RECID(DICTDB2._File), INPUT RECID(DICTDB2._Field)) THEN DO: |
1575 | 1578 | PUT STREAM-HANDLE hPostDeployStream UNFORMATTED |
1576 | 1579 | 'DROP FIELD "' DICTDB._Field._Field-name |
@@ -2553,7 +2556,9 @@ DO ON STOP UNDO, LEAVE |
2553 | 2556 | /* Cannot drop an LOB field online |
2554 | 2557 | In one transaction, only one field can be dropped as online. PostDeploy will have one DROP FIELD operation */ |
2555 | 2558 | FIND FIRST DICTDB2._Field WHERE DICTDB2._Field._Field-Name = missing.name NO-LOCK NO-ERROR. |
2556 | | - IF NOT (DICTDB2._Field._Data-type = "CLOB" OR DICTDB2._Field._Data-type = "BLOB") AND NOT lDrpFldOnline |
| 2559 | + IF AVAILABLE(DICTDB2._Field) |
| 2560 | + AND NOT (DICTDB2._Field._Data-type = "CLOB" OR DICTDB2._Field._Data-type = "BLOB") |
| 2561 | + AND NOT lDrpFldOnline |
2557 | 2562 | AND NOT inindex(INPUT RECID(DICTDB2._File), INPUT RECID(DICTDB2._Field)) THEN DO: |
2558 | 2563 | PUT STREAM-HANDLE hPostDeployStream UNFORMATTED |
2559 | 2564 | 'DROP FIELD "' missing.name |
|
0 commit comments