Skip to content

Commit 51b3b6a

Browse files
committed
clear the build warning for rowid feature.
1 parent 9e9101a commit 51b3b6a

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

src/backend/commands/createas.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
#include "utils/rel.h"
4646
#include "utils/rls.h"
4747
#include "utils/snapmgr.h"
48+
#include "parser/parse_clause.h"
4849

4950
typedef struct
5051
{

src/backend/commands/tablecmds.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
#include "parser/parse_type.h"
8181
#include "parser/parse_utilcmd.h"
8282
#include "parser/parser.h"
83+
#include "parser/parse_clause.h"
8384
#include "partitioning/partbounds.h"
8485
#include "partitioning/partdesc.h"
8586
#include "pgstat.h"
@@ -6736,6 +6737,11 @@ alter_table_type_to_string(AlterTableType cmdtype)
67366737
return "ALTER COLUMN ... DROP INVISIBLE";
67376738
case AT_SetInvisible:
67386739
return "ALTER COLUMN ... SET INVISIBLE";
6740+
case AT_AddRowids:
6741+
case AT_AddRowidsRecurse:
6742+
return "ALTER TABLE ... SET WITH ROWID";
6743+
case AT_DropRowids:
6744+
return "ALTER TABLE ... SET WITHOUT ROWID";
67396745
}
67406746

67416747
return NULL;

src/oracle_test/modules/test_ddl_deparse/test_ddl_deparse.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,13 @@ get_altertable_subcmdinfo(PG_FUNCTION_ARGS)
328328
case AT_SetInvisible:
329329
strtype = "SET INVISIBLE";
330330
break;
331+
case AT_AddRowids:
332+
case AT_AddRowidsRecurse:
333+
strtype = "ALTER COLUMN SET WITH RWOID";
334+
break;
335+
case AT_DropRowids:
336+
strtype = "ALTER COLUMN SET WITHOUT RWOID";
337+
break;
331338
}
332339

333340
if (subcmd->recurse)

0 commit comments

Comments
 (0)