Skip to content

Commit 1afdccc

Browse files
committed
Missed some array updates ...
1 parent d0e17e2 commit 1afdccc

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/backend/commands/user.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Header: /cvsroot/pgsql/src/backend/commands/user.c,v 1.64 2000/07/17 03:04:44 tgl Exp $
9+
* $Header: /cvsroot/pgsql/src/backend/commands/user.c,v 1.65 2000/07/22 04:16:13 tgl Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -734,8 +734,8 @@ CreateGroup(CreateGroupStmt *stmt)
734734
int i;
735735

736736
userarray = palloc(ARR_OVERHEAD(1) + length(newlist) * sizeof(int32));
737-
ARR_SIZE(userarray) = ARR_OVERHEAD(1) + length(newlist) * sizeof(int32);
738-
ARR_FLAGS(userarray) = 0x0;
737+
userarray->size = ARR_OVERHEAD(1) + length(newlist) * sizeof(int32);
738+
userarray->flags = 0;
739739
ARR_NDIM(userarray) = 1;/* one dimensional array */
740740
ARR_LBOUND(userarray)[0] = 1; /* axis starts at one */
741741
ARR_DIMS(userarray)[0] = length(newlist); /* axis is this long */
@@ -905,8 +905,8 @@ AlterGroup(AlterGroupStmt *stmt, const char *tag)
905905
}
906906

907907
newarray = palloc(ARR_OVERHEAD(1) + length(newlist) * sizeof(int32));
908-
ARR_SIZE(newarray) = ARR_OVERHEAD(1) + length(newlist) * sizeof(int32);
909-
ARR_FLAGS(newarray) = 0x0;
908+
newarray->size = ARR_OVERHEAD(1) + length(newlist) * sizeof(int32);
909+
newarray->flags = 0;
910910
ARR_NDIM(newarray) = 1; /* one dimensional array */
911911
ARR_LBOUND(newarray)[0] = 1; /* axis starts at one */
912912
ARR_DIMS(newarray)[0] = length(newlist); /* axis is this long */
@@ -1013,8 +1013,8 @@ AlterGroup(AlterGroupStmt *stmt, const char *tag)
10131013
}
10141014

10151015
newarray = palloc(ARR_OVERHEAD(1) + length(newlist) * sizeof(int32));
1016-
ARR_SIZE(newarray) = ARR_OVERHEAD(1) + length(newlist) * sizeof(int32);
1017-
ARR_FLAGS(newarray) = 0x0;
1016+
newarray->size = ARR_OVERHEAD(1) + length(newlist) * sizeof(int32);
1017+
newarray->flags = 0;
10181018
ARR_NDIM(newarray) = 1; /* one dimensional array */
10191019
ARR_LBOUND(newarray)[0] = 1; /* axis starts at one */
10201020
ARR_DIMS(newarray)[0] = length(newlist); /* axis is this long */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy