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

Commita628e0c

Browse files
committed
Make TupleDescInitBuiltinEntry throw error for unsupported types.
Previously, it would just pass back a partially-uninitialized tupdesc,which doesn't seem like a safe or useful behavior.Backpatch to v10 where this code came in.Discussion:https://postgr.es/m/30830.1544384975@sss.pgh.pa.us
1 parentaedd3d4 commita628e0c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/backend/access/common/tupdesc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,9 @@ TupleDescInitBuiltinEntry(TupleDesc desc,
748748
att->attstorage='p';
749749
att->attcollation=InvalidOid;
750750
break;
751+
752+
default:
753+
elog(ERROR,"unsupported type %u",oidtypeid);
751754
}
752755
}
753756

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp