reindent c files

pull/7566/head
copetol 2024-03-27 19:19:08 +03:00
parent 08ac904e7b
commit 64a8d71739
2 changed files with 9 additions and 6 deletions

View File

@ -768,10 +768,11 @@ ConvertTableInternal(TableConversionState *con)
foreach_ptr(columnName, nonStoredColumnNameList) foreach_ptr(columnName, nonStoredColumnNameList)
{ {
List *commentDDLCommandsColumn = GetCommentPropagationCommandsX( List *commentDDLCommandsColumn = GetCommentPropagationCommandsX(
con->relationId, RelationRelationId, columnName , OBJECT_COLUMN, con->relationId, RelationRelationId, columnName, OBJECT_COLUMN,
con->relationName, ++columnCount); con->relationName, ++columnCount);
postLoadCommands = list_concat(postLoadCommands, postLoadCommands = list_concat(postLoadCommands,
WrapTableDDLCommands(commentDDLCommandsColumn)); WrapTableDDLCommands(
commentDDLCommandsColumn));
} }
} }

View File

@ -30,9 +30,11 @@ inline List *
GetCommentPropagationCommands(Oid classOid, Oid objOoid, char *objectName, ObjectType GetCommentPropagationCommands(Oid classOid, Oid objOoid, char *objectName, ObjectType
objectType) objectType)
{ {
return GetCommentPropagationCommandsX(classOid, objOoid, objectName, objectType, NULL, 0); return GetCommentPropagationCommandsX(classOid, objOoid, objectName, objectType, NULL,
0);
} }
List * List *
GetCommentPropagationCommandsX(Oid classOid, Oid objOoid, char *objectName, ObjectType GetCommentPropagationCommandsX(Oid classOid, Oid objOoid, char *objectName, ObjectType
objectType, char *qualifier, int32 subid) objectType, char *qualifier, int32 subid)
@ -43,7 +45,7 @@ GetCommentPropagationCommandsX(Oid classOid, Oid objOoid, char *objectName, Obje
char *comment = NULL; char *comment = NULL;
if((objectType == OBJECT_DATABASE) || (objectType == OBJECT_ROLE) || (objectType == if ((objectType == OBJECT_DATABASE) || (objectType == OBJECT_ROLE) || (objectType ==
OBJECT_TABLESPACE)) OBJECT_TABLESPACE))
{ {
/* Get the comment for the shared object */ /* Get the comment for the shared object */