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

Commit63ebd37

Browse files
committed
Use class_args field in opclass_drop
This makes it consistent with the usage in opclass_item.Reviewed-by: Jim Nasby <Jim.Nasby@BlueTreble.com>Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
1 parent12a2544 commit63ebd37

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

‎src/backend/commands/opclasscmds.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ AlterOpFamilyDrop(AlterOpFamilyStmt *stmt, Oid amoid, Oid opfamilyoid,
989989
errmsg("invalid operator number %d,"
990990
" must be between 1 and %d",
991991
item->number,maxOpNumber)));
992-
processTypesSpec(item->args,&lefttype,&righttype);
992+
processTypesSpec(item->class_args,&lefttype,&righttype);
993993
/* Save the info */
994994
member= (OpFamilyMember*)palloc0(sizeof(OpFamilyMember));
995995
member->number=item->number;
@@ -1004,7 +1004,7 @@ AlterOpFamilyDrop(AlterOpFamilyStmt *stmt, Oid amoid, Oid opfamilyoid,
10041004
errmsg("invalid procedure number %d,"
10051005
" must be between 1 and %d",
10061006
item->number,maxProcNumber)));
1007-
processTypesSpec(item->args,&lefttype,&righttype);
1007+
processTypesSpec(item->class_args,&lefttype,&righttype);
10081008
/* Save the info */
10091009
member= (OpFamilyMember*)palloc0(sizeof(OpFamilyMember));
10101010
member->number=item->number;

‎src/backend/parser/gram.y

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5910,15 +5910,15 @@ opclass_drop:
59105910
CreateOpClassItem *n = makeNode(CreateOpClassItem);
59115911
n->itemtype = OPCLASS_ITEM_OPERATOR;
59125912
n->number =$2;
5913-
n->args =$4;
5913+
n->class_args =$4;
59145914
$$ = (Node *) n;
59155915
}
59165916
|FUNCTIONIconst'('type_list')'
59175917
{
59185918
CreateOpClassItem *n = makeNode(CreateOpClassItem);
59195919
n->itemtype = OPCLASS_ITEM_FUNCTION;
59205920
n->number =$2;
5921-
n->args =$4;
5921+
n->class_args =$4;
59225922
$$ = (Node *) n;
59235923
}
59245924
;

‎src/include/nodes/parsenodes.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2424,7 +2424,8 @@ typedef struct CreateOpClassItem
24242424
List*args;/* argument types */
24252425
intnumber;/* strategy num or support proc num */
24262426
List*order_family;/* only used for ordering operators */
2427-
List*class_args;/* only used for functions */
2427+
List*class_args;/* amproclefttype/amprocrighttype or
2428+
* amoplefttype/amoprighttype */
24282429
/* fields used for a storagetype item: */
24292430
TypeName*storedtype;/* datatype stored in index */
24302431
}CreateOpClassItem;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp