mirror of
https://github.com/postgres/postgres.git
synced 2025-09-09 13:09:39 +03:00
Fix unnecessary casts of copyObject() result
The result is already of the correct type, so these casts don't do anything. Reviewed-by: Nathan Bossart <nathandbossart@gmail.com> Reviewed-by: Tender Wang <tndrwang@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/637eeea8-5663-460b-a114-39572c0f6c6e%40eisentraut.org
This commit is contained in:
@@ -1169,7 +1169,7 @@ CreateTriggerFiringOn(CreateTrigStmt *stmt, const char *queryString,
|
||||
* Initialize our fabricated parse node by copying the original
|
||||
* one, then resetting fields that we pass separately.
|
||||
*/
|
||||
childStmt = (CreateTrigStmt *) copyObject(stmt);
|
||||
childStmt = copyObject(stmt);
|
||||
childStmt->funcname = NIL;
|
||||
childStmt->whenClause = NULL;
|
||||
|
||||
|
Reference in New Issue
Block a user