summaryrefslogtreecommitdiff
path: root/src/backend/commands/schemacmds.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2013-04-28 00:18:45 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2013-04-28 00:18:45 -0400
commitf8db76e875099e5e49f5cd729a673e84c0b0471b (patch)
tree162e43ab4a10fbeef78201e9adc87c433fe9d197 /src/backend/commands/schemacmds.c
parent5525e6c40bbda351a19b48317eba0f79aa32e447 (diff)
Editorialize a bit on new ProcessUtility() API.
Choose a saner ordering of parameters (adding a new input param after the output params seemed a bit random), update the function's header comment to match reality (cmon folks, is this really that hard?), get rid of useless and sloppily-defined distinction between PROCESS_UTILITY_SUBCOMMAND and PROCESS_UTILITY_GENERATED.
Diffstat (limited to 'src/backend/commands/schemacmds.c')
-rw-r--r--src/backend/commands/schemacmds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/schemacmds.c b/src/backend/commands/schemacmds.c
index 21d7e608df4..1d13ba0d304 100644
--- a/src/backend/commands/schemacmds.c
+++ b/src/backend/commands/schemacmds.c
@@ -151,10 +151,10 @@ CreateSchemaCommand(CreateSchemaStmt *stmt, const char *queryString)
/* do this step */
ProcessUtility(stmt,
queryString,
+ PROCESS_UTILITY_SUBCOMMAND,
NULL,
None_Receiver,
- NULL,
- PROCESS_UTILITY_SUBCOMMAND);
+ NULL);
/* make sure later steps can see the object created here */
CommandCounterIncrement();
}