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
pull/269/head
Heikki Linnakangas 5 months ago
parent ad853bb877
commit 63d1b1cf7f
  1. 2
      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);

Loading…
Cancel
Save