Fixes review comments

pull/7563/head
gurkanindibay 2024-03-27 11:03:21 +03:00
parent c458ae13e8
commit 082e35687c
2 changed files with 2 additions and 2 deletions

View File

@ -293,7 +293,7 @@ PreprocessAlterDatabaseStmt(Node *node, const char *queryString,
return NIL;
}
/* Since ALTER TABLE SET TABLESPACE statement is not supported */
/* Since ALTER DATABASE SET TABLESPACE statement is not supported */
/* inside a transaction block, we need to send the command to the */
/* main database directly to make it work */
if (!IsSetTablespaceStatement(stmt))

View File

@ -378,7 +378,7 @@ AlterDbStmtCheckSupportedObjectType(Node *node)
}
else
{
return IsSetTablespaceStatement(stmt) && strcmp(stmt->dbname, MainDb) != 0;
return strcmp(stmt->dbname, MainDb) != 0;
}
}