mirror of https://github.com/citusdata/citus.git
Remove Node cast of authrole (now RoleSpec)
Rather than Node, the authrole field of CreateSchemaStmt is an actual RoleSpec type. The cast to Node only makes sense before PostgreSQL 10.pull/1439/head
parent
c0e2a25d92
commit
90bf243904
|
@ -291,13 +291,14 @@ CreateJobSchema(StringInfo schemaName)
|
|||
|
||||
createSchemaStmt = makeNode(CreateSchemaStmt);
|
||||
createSchemaStmt->schemaname = schemaName->data;
|
||||
createSchemaStmt->authrole = (Node *) ¤tUserRole;
|
||||
createSchemaStmt->schemaElts = NIL;
|
||||
|
||||
/* actually create schema with the current user as owner */
|
||||
#if (PG_VERSION_NUM >= 100000)
|
||||
createSchemaStmt->authrole = ¤tUserRole;
|
||||
CreateSchemaCommand(createSchemaStmt, queryString, -1, -1);
|
||||
#else
|
||||
createSchemaStmt->authrole = (Node *) ¤tUserRole;
|
||||
CreateSchemaCommand(createSchemaStmt, queryString);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue