From 853d56594f722c3a5f335393c747b3a3a4d1fa2a Mon Sep 17 00:00:00 2001 From: Anuraag Agrawal Date: Fri, 1 Dec 2023 14:57:21 +0900 Subject: [PATCH] Fix type cast for normalizing alter subscription statement --- src/pg_query_normalize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pg_query_normalize.c b/src/pg_query_normalize.c index a03220a2..bc15b01e 100644 --- a/src/pg_query_normalize.c +++ b/src/pg_query_normalize.c @@ -417,7 +417,7 @@ static bool const_record_walker(Node *node, pgssConstLocations *jstate) record_matching_string(jstate, ((CreateSubscriptionStmt *) node)->conninfo); break; case T_AlterSubscriptionStmt: - record_matching_string(jstate, ((CreateSubscriptionStmt *) node)->conninfo); + record_matching_string(jstate, ((AlterSubscriptionStmt *) node)->conninfo); break; case T_CreateUserMappingStmt: return const_record_walker((Node *) ((CreateUserMappingStmt *) node)->options, jstate);