Skip to content

Commit 316c5cb

Browse files
committed
Factor out duplicate code for computing values of PLpgSQL_datum items.
This is to help localize the changes needed for adding a new kind of PLpgSQL_datum (like, say, an array element...)
1 parent 6ba159f commit 316c5cb

File tree

4 files changed

+174
-358
lines changed

4 files changed

+174
-358
lines changed

src/pl/plpgsql/src/pl_comp.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* procedural language
44
*
55
* IDENTIFICATION
6-
* $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_comp.c,v 1.54 2003/01/31 00:31:53 tgl Exp $
6+
* $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_comp.c,v 1.55 2003/03/25 00:34:23 tgl Exp $
77
*
88
* This software is copyrighted by Jan Wieck - Hamburg.
99
*
@@ -696,7 +696,7 @@ plpgsql_parse_dblword(char *word)
696696
new = malloc(sizeof(PLpgSQL_recfield));
697697
new->dtype = PLPGSQL_DTYPE_RECFIELD;
698698
new->fieldname = strdup(cp[1]);
699-
new->recno = ns->itemno;
699+
new->recparentno = ns->itemno;
700700

701701
plpgsql_adddatum((PLpgSQL_datum *) new);
702702

@@ -799,7 +799,7 @@ plpgsql_parse_tripword(char *word)
799799
new = malloc(sizeof(PLpgSQL_recfield));
800800
new->dtype = PLPGSQL_DTYPE_RECFIELD;
801801
new->fieldname = strdup(cp[2]);
802-
new->recno = ns->itemno;
802+
new->recparentno = ns->itemno;
803803

804804
plpgsql_adddatum((PLpgSQL_datum *) new);
805805

0 commit comments

Comments
 (0)