Skip to content

Commit c6ca429

Browse files
author
pscbld
committed
12.2.10
1 parent b9897a9 commit c6ca429

File tree

1 file changed

+11
-19
lines changed

1 file changed

+11
-19
lines changed

prodict/dump/_dmpincr.p

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
/***********************************************************************
2-
* Copyright (C) 2005-2014,2020 by Progress Software Corporation. All rights *
3-
reserved. Prior versions of this work may contain portions *
4-
* contributed by participants of Possenet. *
5-
* *
6-
************************************************************************/
1+
/************************************************************************
2+
* Copyright (C) 2005-2014,2020,2022 by Progress Software Corporation. *
3+
* All rights reserved. Prior versions of this work may contain portions *
4+
* contributed by participants of Possenet. *
5+
* *
6+
*************************************************************************/
77

88
/* _dmpincr.p - phase 2 of incremental .df maker
99
@@ -92,6 +92,8 @@ History:
9292
rkamboj 03/30/2012 Added check for sql-92 tables with unsupported ABL prop - OE00208080
9393
rkamboj 11/14/13 Added support to generate incremental for IS-PARTITIONED for _file and IS-LOCAL for _Index. For table partitioning feature.
9494
tmasood 12/11/20 Merge changes from 12.1
95+
tmasood 05/10/22 Changed the code to dump index mode as per the DUMP_INC_INDEXMODE value in case of Unique index only
96+
9597
*/
9698

9799
using Progress.Lang.*.
@@ -2229,22 +2231,12 @@ DO ON STOP UNDO, LEAVE
22292231
IF DICTDB._Index._Unique THEN DO:
22302232
PUT STREAM ddl UNFORMATTED " UNIQUE" SKIP.
22312233

2232-
IF OS-GETENV ("DUMP_INC_INDEXMODE") NE ? AND OS-GETENV ("DUMP_INC_INDEXMODE") NE '""' THEN DO:
2233-
IF OS-GETENV ("DUMP_INC_INDEXMODE") EQ "inactive" THEN
2234-
PUT STREAM ddl UNFORMATTED " INACTIVE" SKIP.
2235-
END.
2236-
ELSE IF NOT (DICTDB._Index._Active AND (IF iact = ? THEN TRUE ELSE iact)) THEN DO:
2234+
IF NOT (DICTDB._Index._Active AND (IF iact = ? THEN TRUE ELSE iact)) THEN
22372235
PUT STREAM ddl UNFORMATTED " INACTIVE" SKIP.
2238-
END.
22392236
END.
2240-
ELSE IF OS-GETENV ("DUMP_INC_INDEXMODE") NE ? AND OS-GETENV ("DUMP_INC_INDEXMODE") NE '""' THEN DO:
2241-
IF OS-GETENV ("DUMP_INC_INDEXMODE") EQ "inactive" THEN
2242-
PUT STREAM ddl UNFORMATTED " INACTIVE" SKIP.
2243-
END.
2244-
ELSE IF NOT DICTDB._Index._Active AND NOT DICTDB._Index._Unique THEN DO:
2237+
ELSE IF NOT DICTDB._Index._Active AND NOT DICTDB._Index._Unique THEN
22452238
PUT STREAM ddl UNFORMATTED " INACTIVE" SKIP.
2246-
END.
2247-
2239+
22482240
IF DICTDB._Index._Wordidx = 1 THEN
22492241
PUT STREAM ddl UNFORMATTED " WORD" SKIP.
22502242
IF DICTDB._Index._Desc <> ? AND DICTDB._Index._Desc <> '' THEN DO:

0 commit comments

Comments
 (0)