From: Heikki Linnakangas Date: Thu, 8 Jan 2026 16:58:28 +0000 (+0200) Subject: Use IsA macro, for sake of consistency X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=63d1b1cf7f1;p=thirdparty%2Fpostgresql.git Use IsA macro, for sake of consistency Reported-by: Shinya Kato Discussion: https://www.postgresql.org/message-id/CAOzEurS=PzRzGba3mpNXgEhbnQFA0dxXaU0ujCJ0aa9yMSH6Pw@mail.gmail.com --- 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);