Fixes review notes

pull/7253/head
gindibay 2023-10-13 18:45:58 +03:00
parent ba3123455e
commit 30bbfe444d
1 changed files with 5 additions and 4 deletions

View File

@ -159,7 +159,9 @@ PreprocessGrantOnDatabaseStmt(Node *node, const char *queryString,
return NodeDDLTaskList(NON_COORDINATOR_NODES, commands);
}
static bool isSetTablespaceStatement(AlterDatabaseStmt *stmt)
static bool
isSetTablespaceStatement(AlterDatabaseStmt *stmt)
{
ListCell *lc = NULL;
foreach(lc, stmt->options)
@ -190,11 +192,10 @@ PreprocessAlterDatabaseStmt(Node *node, const char *queryString,
return NIL;
}
EnsureCoordinator();
AlterDatabaseStmt *stmt = castNode(AlterDatabaseStmt, node);
char *sql = DeparseTreeNode((Node *) stmt);
List *commands = NULL;