Apply suggestions from code review

Co-authored-by: Onur Tirtir <onurcantirtir@gmail.com>
pull/7253/head
Gürkan İndibay 2023-11-27 22:19:42 +03:00 committed by GitHub
parent 455620cead
commit 9301531941
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 11 deletions

View File

@ -192,17 +192,8 @@ PreprocessGrantOnDatabaseStmt(Node *node, const char *queryString,
/* /*
* Checks if the provided ALTER DATABASE statement is a SET TABLESPACE statement. * IsSetTablespaceStatement returns true if given AlterDatabaseStmt contains
* * a DefElem to alter tablespace of the target database.
* This function takes a Node pointer representing a AlterDatabaseStmt, and checks
* if it is a SET TABLESPACE statement, which is used to move a table to a new
* tablespace.
*
* Parameters:
* stmt: A pointer to a Node representing AlterDatabaseStmt.
*
* Returns:
* true if the statement is a SET TABLESPACE statement, false otherwise.
*/ */
static bool static bool
isSetTablespaceStatement(AlterDatabaseStmt *stmt) isSetTablespaceStatement(AlterDatabaseStmt *stmt)