mirror of https://github.com/citusdata/citus.git
Fixes indentation and test issues
parent
3a5cc909a4
commit
721e0a13bd
|
@ -100,7 +100,7 @@
|
||||||
* supported from non-main databases and whether it should be marked as
|
* supported from non-main databases and whether it should be marked as
|
||||||
* distributed explicitly (*).
|
* distributed explicitly (*).
|
||||||
*
|
*
|
||||||
|
*
|
||||||
* (*) We always have to mark such objects as "distributed" but while for some
|
* (*) We always have to mark such objects as "distributed" but while for some
|
||||||
* object types we can delegate this to main database, for some others we have
|
* object types we can delegate this to main database, for some others we have
|
||||||
* to explicitly send a command to all nodes in this code-path to achieve this.
|
* to explicitly send a command to all nodes in this code-path to achieve this.
|
||||||
|
@ -1655,7 +1655,6 @@ DropSchemaOrDBInProgress(void)
|
||||||
static void
|
static void
|
||||||
RunPreprocessMainDBCommand(Node *parsetree)
|
RunPreprocessMainDBCommand(Node *parsetree)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (!IsStatementSupportedFromNonMainDb(parsetree))
|
if (!IsStatementSupportedFromNonMainDb(parsetree))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -634,7 +634,8 @@ DECLARE
|
||||||
BEGIN
|
BEGIN
|
||||||
FOREACH permission IN ARRAY permissions
|
FOREACH permission IN ARRAY permissions
|
||||||
LOOP
|
LOOP
|
||||||
RETURN QUERY EXECUTE format($inner$SELECT '%s', result FROM run_command_on_all_nodes($$select has_database_privilege('%s','%s', '%s'); $$)$inner$, permission, role_name, db_name, permission);
|
RETURN QUERY EXECUTE format($inner$SELECT %s, result FROM run_command_on_all_nodes($$select has_database_privilege(%s,%s,%s); $$)$inner$,
|
||||||
|
quote_literal(permission), quote_literal(role_name), quote_literal(db_name), quote_literal(permission));
|
||||||
END LOOP;
|
END LOOP;
|
||||||
END;
|
END;
|
||||||
$func$ LANGUAGE plpgsql;
|
$func$ LANGUAGE plpgsql;
|
||||||
|
|
Loading…
Reference in New Issue