mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +03:00
Make more use of castNode()
This commit is contained in:
@ -1515,8 +1515,7 @@ func_get_detail(List *funcname,
|
||||
&isnull);
|
||||
Assert(!isnull);
|
||||
str = TextDatumGetCString(proargdefaults);
|
||||
defaults = (List *) stringToNode(str);
|
||||
Assert(IsA(defaults, List));
|
||||
defaults = castNode(List, stringToNode(str));
|
||||
pfree(str);
|
||||
|
||||
/* Delete any unused defaults from the returned list */
|
||||
|
Reference in New Issue
Block a user