提交 15acffab 编写于 作者: A Adam Lee

Fix has_external_partition() incompatible pointer type warnings

cdbpartition.c: In function ‘rel_has_external_partition’:
cdbpartition.c:489:32: warning: passing argument 1 of ‘has_external_partition’ from incompatible pointer type [-Wincompatible-pointer-types]
  return has_external_partition(n->rules);
                                ^
cdbpartition.c:106:13: note: expected ‘PartitionRule * {aka struct PartitionRule *}’ but argument is of type ‘List * {aka struct List *}’
 static bool has_external_partition(PartitionRule *rules);
             ^~~~~~~~~~~~~~~~~~~~~~
上级 0e443dc1
......@@ -106,7 +106,7 @@ constrNodeMatch(const void *keyPtr1, const void *keyPtr2, Size keysize);
static void
parruleord_open_gap(Oid partid, int2 level, Oid parent,
int2 ruleord, int stopkey, bool closegap);
static bool has_external_partition(PartitionRule *rules);
static bool has_external_partition(List *rules);
/*
* Hash keys are null-terminated C strings assumed to be stably
......@@ -9381,7 +9381,7 @@ findPartitionNodeEntry(PartitionNode *partitionNode, Oid partOid)
* external partition table
*/
static bool
has_external_partition(PartitionRule *rules)
has_external_partition(List *rules)
{
if (rules == NULL)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册