Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 725a03e

Browse files
committed
Make GetAttributeByNum visible again for external use.
1 parent c73a193 commit 725a03e

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-
#ifdef NOT_USED
510-
static char *
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
AttrNumber attrno,
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
#ifdef NOT_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
extern char *
83-
GetAttributeByName(TupleTableSlot *slot, char *attname,
84-
bool *isNull);
83+
GetAttributeByNum(TupleTableSlot *slot, AttrNumber attrno, bool *isNull);
84+
extern char *
85+
GetAttributeByName(TupleTableSlot *slot, char *attname, bool *isNull);
8586
extern Datum
8687
ExecEvalExpr(Node *expression, ExprContext *econtext, bool *isNull,
8788
bool *isDone);

0 commit comments

Comments
 (0)