mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-07-16 20:01:09 +02:00
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
This commit is contained in:
parent
aedd3d4dbd
commit
a628e0c5b4
@ -748,6 +748,9 @@ TupleDescInitBuiltinEntry(TupleDesc desc,
|
||||
att->attstorage = 'p';
|
||||
att->attcollation = InvalidOid;
|
||||
break;
|
||||
|
||||
default:
|
||||
elog(ERROR, "unsupported type %u", oidtypeid);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user