From 63d1b1cf7f1e3d7834d3914114c23c27023e6840 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Thu, 8 Jan 2026 18:58:28 +0200 Subject: [PATCH] Use IsA macro, for sake of consistency Reported-by: Shinya Kato Discussion: https://www.postgresql.org/message-id/CAOzEurS=PzRzGba3mpNXgEhbnQFA0dxXaU0ujCJ0aa9yMSH6Pw@mail.gmail.com --- src/backend/commands/copy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/commands/copy.c b/src/backend/commands/copy.c index 0e92396dab7..9c51384ab92 100644 --- a/src/backend/commands/copy.c +++ b/src/backend/commands/copy.c @@ -488,7 +488,7 @@ defGetCopyRejectLimitOption(DefElem *def) (errcode(ERRCODE_SYNTAX_ERROR), errmsg("%s requires a numeric value", def->defname))); - else if (nodeTag(def->arg) == T_String) + else if (IsA(def->arg, String)) reject_limit = pg_strtoint64(strVal(def->arg)); else reject_limit = defGetInt64(def);