mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
Use TupleDescAttr macro consistently
A few places were directly accessing the attrs[] array. This goes
against the standards set by 2cd708452
. Fix that.
Discussion: https://postgr.es/m/CAApHDvrBztXP3yx=NKNmo3xwFAFhEdyPnvrDg3=M0RhDs+4vYw@mail.gmail.com
This commit is contained in:
@ -309,7 +309,7 @@ gist_page_items(PG_FUNCTION_ARGS)
|
||||
bool typisvarlena;
|
||||
Oid typoid;
|
||||
|
||||
typoid = tupdesc->attrs[i].atttypid;
|
||||
typoid = TupleDescAttr(tupdesc, i)->atttypid;
|
||||
getTypeOutputInfo(typoid, &foutoid, &typisvarlena);
|
||||
value = OidOutputFunctionCall(foutoid, itup_values[i]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user