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

Commit 60b1123

Browse files
committed
Fixes:
Here's a couple more small fixes that I've made to make my runtime checker happy with the code. More along the lines of those that I sent in the past, ie, a pointer to an array != the name of an array. The last patch is that I mailed about yesterday -- I got two replies of "do it", so it's done. As far as I can tell, however, the function in question is never called by pg95, so either way it can't hurt... From: "Kurt J. Lidl" <lidl@va.pubnix.com>
1 parent 77e0165 commit 60b1123

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/backend/catalog/index.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.1.1.1 1996/07/09 06:21:15 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.2 1996/08/19 13:32:07 scrappy Exp $
1111
*
1212
*
1313
* INTERFACE ROUTINES
@@ -992,7 +992,7 @@ index_create(char *heapRelationName,
992992
AttrNumber attNums[],
993993
Oid classObjectId[],
994994
uint16 parameterCount,
995-
Datum parameter[],
995+
Datum *parameter,
996996
Node *predicate)
997997
{
998998
Relation heapRelation;
@@ -1610,7 +1610,7 @@ index_build(Relation heapRelation,
16101610
int numberOfAttributes,
16111611
AttrNumber attributeNumber[],
16121612
uint16 parameterCount,
1613-
Datum parameter[],
1613+
Datum *parameter,
16141614
FuncIndexInfo *funcInfo,
16151615
PredInfo *predInfo)
16161616
{

src/backend/catalog/index.h

Lines changed: 3 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: index.h,v 1.1.1.1 1996/07/09 06:21:15 scrappy Exp $
9+
* $Id: index.h,v 1.2 1996/08/19 13:32:08 scrappy Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -36,7 +36,7 @@ extern void index_create(char *heapRelationName,
3636
AttrNumber attNums[],
3737
Oid classObjectId[],
3838
uint16 parameterCount,
39-
Datum parameter[],
39+
Datum *parameter,
4040
Node *predicate);
4141

4242
extern void index_destroy(Oid indexId);
@@ -53,7 +53,7 @@ extern void FillDummyExprContext(ExprContext *econtext, TupleTableSlot *slot,
5353

5454
extern void index_build(Relation heapRelation, Relation indexRelation,
5555
int numberOfAttributes, AttrNumber attributeNumber[],
56-
uint16 parameterCount, Datum parameter[], FuncIndexInfo *funcInfo,
56+
uint16 parameterCount, Datum *parameter, FuncIndexInfo *funcInfo,
5757
PredInfo *predInfo);
5858

5959
#endif /* INDEX_H */

src/backend/nodes/copyfuncs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.1.1.1 1996/07/09 06:21:32 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.2 1996/08/19 13:32:14 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -589,7 +589,7 @@ _copyResdom(Resdom *from)
589589
static Fjoin *
590590
_copyFjoin(Fjoin *from)
591591
{
592-
Fjoin *newnode;
592+
Fjoin *newnode = makeNode(Fjoin);
593593

594594
/* ----------------
595595
* copy node superclass fields

0 commit comments

Comments
 (0)