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

Commit7677fe0

Browse files
committed
Minor code cleanup.
1 parentc06f6a6 commit7677fe0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

‎src/backend/commands/user.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Header: /cvsroot/pgsql/src/backend/commands/user.c,v 1.99 2002/04/27 21:24:34 tgl Exp $
9+
* $Header: /cvsroot/pgsql/src/backend/commands/user.c,v 1.100 2002/04/28 00:36:38 tgl Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -1099,7 +1099,7 @@ CreateGroup(CreateGroupStmt *stmt)
10991099
List*item,
11001100
*option,
11011101
*newlist=NIL;
1102-
ArrayType*userarray;
1102+
IdList*grolist;
11031103
intsysid=0;
11041104
List*userElts=NIL;
11051105
DefElem*dsysid=NULL;
@@ -1196,21 +1196,21 @@ CreateGroup(CreateGroupStmt *stmt)
11961196

11971197
/* build an array to insert */
11981198
if (newlist)
1199-
userarray=IdListToArray(newlist);
1199+
grolist=IdListToArray(newlist);
12001200
else
1201-
userarray=NULL;
1201+
grolist=NULL;
12021202

12031203
/*
12041204
* Form a tuple to insert
12051205
*/
12061206
new_record[Anum_pg_group_groname-1]=
12071207
DirectFunctionCall1(namein,CStringGetDatum(stmt->name));
12081208
new_record[Anum_pg_group_grosysid-1]=Int32GetDatum(sysid);
1209-
new_record[Anum_pg_group_grolist-1]=PointerGetDatum(userarray);
1209+
new_record[Anum_pg_group_grolist-1]=PointerGetDatum(grolist);
12101210

12111211
new_record_nulls[Anum_pg_group_groname-1]=' ';
12121212
new_record_nulls[Anum_pg_group_grosysid-1]=' ';
1213-
new_record_nulls[Anum_pg_group_grolist-1]=userarray ?' ' :'n';
1213+
new_record_nulls[Anum_pg_group_grolist-1]=grolist ?' ' :'n';
12141214

12151215
tuple=heap_formtuple(pg_group_dsc,new_record,new_record_nulls);
12161216

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp