mirror of
https://github.com/postgres/postgres.git
synced 2026-01-13 02:07:39 +00: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:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user