Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit316c5cb

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 ofPLpgSQL_datum (like, say, an array element...)
1 parent6ba159f commit316c5cb

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)

[8]ページ先頭

©2009-2025 Movatter.jp