|
1 |
| -/********************************************************************* |
2 |
| -* Copyright (C) 2005-2009 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-2024 by Progress Software Corporation. All rights * |
| 3 | +* reserved. Prior versions of this work may contain portions * |
| 4 | +* contributed by participants of Possenet. * |
| 5 | +* * |
| 6 | +***********************************************************************/ |
7 | 7 | /* Procedure: prodict/ora/_gendsql.p
|
8 | 8 |
|
9 | 9 | Created: Donna L. McMann
|
|
66 | 66 | 05/12/08 Handle duplicate field names being added - OE00166402
|
67 | 67 | 12/08/08 Handle case where index is re-added - OE00177558
|
68 | 68 | 04/14/09 Handle update of new object
|
69 |
| - 09/25/11 Delta sql support for constraint feature by kmayur |
| 69 | + 09/25/11 Delta sql support for constraint feature by kmayur |
| 70 | + 03/04/24 Fixed issue for not considering width option in DSRVR-PRECISION value While generating DF using delta SQL utility (OCTA-57941). |
70 | 71 | If the user wants to have a DEFAULT value of blank for VARCHAR2 fields,
|
71 | 72 | an environmental variable BLANKDEFAULT can be set to "YES" and the code will
|
72 | 73 | put the DEFAULT ' ' syntax on the definition for a new field. D. McMann 11/27/02
|
@@ -2446,6 +2447,12 @@ PROCEDURE process-fld-width:
|
2446 | 2447 | AND df-info.df-fld = fieldname
|
2447 | 2448 | AND df-info.df-line BEGINS " FOREIGN-MAXIMUM".
|
2448 | 2449 | ASSIGN df-info.df-line = " FOREIGN-MAXIMUM " + fsize.
|
| 2450 | + |
| 2451 | + FIND df-info WHERE df-info.df-tbl = tablename |
| 2452 | + AND df-info.df-fld = fieldname |
| 2453 | + AND df-info.df-line BEGINS " DSRVR-PRECISION " NO-ERROR. |
| 2454 | + IF AVAILABLE df-info THEN |
| 2455 | + ASSIGN df-info.df-line = " DSRVR-PRECISION " + fsize. |
2449 | 2456 |
|
2450 | 2457 | END PROCEDURE.
|
2451 | 2458 |
|
@@ -3618,6 +3625,7 @@ DO ON STOP UNDO, LEAVE:
|
3618 | 3625 | ASSIGN df-info.df-seq = dfseq
|
3619 | 3626 | dfseq = dfseq + 1
|
3620 | 3627 | df-info.df-tbl = tablename
|
| 3628 | + df-info.df-fld = fieldname |
3621 | 3629 | df-line = " DSRVR-PRECISION " + STRING(all_digits).
|
3622 | 3630 | CREATE df-info.
|
3623 | 3631 | ASSIGN df-info.df-seq = dfseq
|
|
0 commit comments