mirror of
https://github.com/postgres/postgres.git
synced 2025-09-03 15:22:11 +03:00
Make a code-cleanup pass over the collations patch.
This patch is almost entirely cosmetic --- mostly cleaning up a lot of neglected comments, and fixing code layout problems in places where the patch made lines too long and then pgindent did weird things with that. I did find a bug-of-omission in equalTupleDescs().
This commit is contained in:
@@ -360,6 +360,8 @@ equalTupleDescs(TupleDesc tupdesc1, TupleDesc tupdesc2)
|
||||
return false;
|
||||
if (attr1->attinhcount != attr2->attinhcount)
|
||||
return false;
|
||||
if (attr1->attcollation != attr2->attcollation)
|
||||
return false;
|
||||
/* attacl and attoptions are not even present... */
|
||||
}
|
||||
|
||||
@@ -611,7 +613,9 @@ BuildDescForRelation(List *schema)
|
||||
* BuildDescFromLists
|
||||
*
|
||||
* Build a TupleDesc given lists of column names (as String nodes),
|
||||
* column type OIDs, and column typmods. No constraints are generated.
|
||||
* column type OIDs, typmods, and collation OIDs.
|
||||
*
|
||||
* No constraints are generated.
|
||||
*
|
||||
* This is essentially a cut-down version of BuildDescForRelation for use
|
||||
* with functions returning RECORD.
|
||||
|
Reference in New Issue
Block a user