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

Commit85c2b9a

Browse files
committed
Code review of get_qual_for_list.
We need not consider the case where both nulltest1 and nulltest2 areNULL; the partition either accepts nulls or it does not.Jeevan Ladhe. I added an assertion.
1 parent9ae2661 commit85c2b9a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎src/backend/catalog/partition.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,15 +1383,14 @@ get_qual_for_list(PartitionKey key, PartitionBoundSpec *spec)
13831383

13841384
if (nulltest1)
13851385
result=list_make2(nulltest1,opexpr);
1386-
elseif (nulltest2)
1386+
else
13871387
{
13881388
Expr*or;
13891389

1390+
Assert(nulltest2!=NULL);
13901391
or=makeBoolExpr(OR_EXPR,list_make2(nulltest2,opexpr),-1);
13911392
result=list_make1(or);
13921393
}
1393-
else
1394-
result=list_make1(opexpr);
13951394

13961395
returnresult;
13971396
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp