mirror of
https://github.com/postgres/postgres.git
synced 2026-02-14 00:03:18 -05:00
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:
parent
ad853bb877
commit
63d1b1cf7f
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue