Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdc0400c

Browse files
committed
Fix compiler warning and add some more comments
1 parent07044ef commitdc0400c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

‎src/backend/commands/tablecmds.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5924,6 +5924,11 @@ ATExecAddIdentity(Relation rel, const char *colName,
59245924
returnaddress;
59255925
}
59265926

5927+
/*
5928+
* ALTER TABLE ALTER COLUMN SET { GENERATED or sequence options }
5929+
*
5930+
* Return the address of the affected column.
5931+
*/
59275932
staticObjectAddress
59285933
ATExecSetIdentity(Relationrel,constchar*colName,Node*def,LOCKMODElockmode)
59295934
{
@@ -5992,13 +5997,20 @@ ATExecSetIdentity(Relation rel, const char *colName, Node *def, LOCKMODE lockmod
59925997
ObjectAddressSubSet(address,RelationRelationId,
59935998
RelationGetRelid(rel),attnum);
59945999
}
6000+
else
6001+
address=InvalidObjectAddress;
59956002

59966003
heap_freetuple(tuple);
59976004
heap_close(attrelation,RowExclusiveLock);
59986005

59996006
returnaddress;
60006007
}
60016008

6009+
/*
6010+
* ALTER TABLE ALTER COLUMN DROP IDENTITY
6011+
*
6012+
* Return the address of the affected column.
6013+
*/
60026014
staticObjectAddress
60036015
ATExecDropIdentity(Relationrel,constchar*colName,boolmissing_ok,LOCKMODElockmode)
60046016
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp