Use IsA macro, for sake of consistency

Reported-by: Shinya Kato <shinya11.kato@gmail.com>
Discussion: https://www.postgresql.org/message-id/CAOzEurS=PzRzGba3mpNXgEhbnQFA0dxXaU0ujCJ0aa9yMSH6Pw@mail.gmail.com
This commit is contained in:
Heikki Linnakangas
2026-01-08 18:58:28 +02:00
parent ad853bb877
commit 63d1b1cf7f

View File

@ -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);