1
0
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:
David Rowley
2024-07-02 13:41:47 +12:00
parent 0c1aca4614
commit 65b71dec2d
6 changed files with 15 additions and 14 deletions

View File

@ -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]);
}