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

Commit9cb9233

Browse files
committed
Fix uninitialized variable from commita4d75c8.
The path for *exprs != NIL would misbehave, and likely crash,since pull_varattnos expects its last argument to be validat call.Found by Coverity --- we have no coverage of this path inthe regression tests.
1 parent81a23dd commit9cb9233

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/statistics/extended_stats.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1609,7 +1609,7 @@ statext_is_compatible_clause(PlannerInfo *root, Node *clause, Index relid,
16091609

16101610
if (pg_class_aclcheck(rte->relid,userid,ACL_SELECT)!=ACLCHECK_OK)
16111611
{
1612-
Bitmapset*clause_attnums;
1612+
Bitmapset*clause_attnums=NULL;
16131613

16141614
/* Don't have table privilege, must check individual columns */
16151615
if (*exprs!=NIL)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp