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

Commit725a03e

Browse files
committed
Make GetAttributeByNum visible again for external use.
1 parentc73a193 commit725a03e

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

‎src/backend/executor/execQual.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/executor/execQual.c,v 1.18 1997/09/22 04:19:36 vadim Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/executor/execQual.c,v 1.19 1997/09/27 14:37:10 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -506,8 +506,11 @@ ExecEvalParam(Param *expression, ExprContext *econtext, bool *isNull)
506506
*to use this. Ex: overpaid(EMP) might call GetAttributeByNum().
507507
* ----------------
508508
*/
509-
#ifdefNOT_USED
510-
staticchar*
509+
/*
510+
* This gets called from external functions, so don't make it static
511+
* or remove it
512+
*/
513+
char*
511514
GetAttributeByNum(TupleTableSlot*slot,
512515
AttrNumberattrno,
513516
bool*isNull)
@@ -539,8 +542,6 @@ GetAttributeByNum(TupleTableSlot *slot,
539542
return (char*)retval;
540543
}
541544

542-
#endif
543-
544545
/* XXX char16 name for catalogs */
545546
#ifdefNOT_USED
546547
char*

‎src/include/executor/executor.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: executor.h,v 1.13 1997/09/08 21:51:51 momjian Exp $
9+
* $Id: executor.h,v 1.14 1997/09/27 14:37:21 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -80,8 +80,9 @@ ExecEvalParam(Param *expression, ExprContext *econtext,
8080

8181
/* stop here */
8282
externchar*
83-
GetAttributeByName(TupleTableSlot*slot,char*attname,
84-
bool*isNull);
83+
GetAttributeByNum(TupleTableSlot*slot,AttrNumberattrno,bool*isNull);
84+
externchar*
85+
GetAttributeByName(TupleTableSlot*slot,char*attname,bool*isNull);
8586
externDatum
8687
ExecEvalExpr(Node*expression,ExprContext*econtext,bool*isNull,
8788
bool*isDone);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp