=> operator for named parameters in open cursor

Started by Martin Butteralmost 4 years ago2 messageshackers
Jump to latest
#1Martin Butter
martin.butter@splendiddata.com

Since Postgres 9.5 it is possible to use the => operators for filling in
named parameters in a function call, like perform my_func(named_param =>
'some value'). The old form, with the := operator is still allowed for
backward reference.

But with open cursor, still only the old := operator is allowed.
Wouldn't it be more appropriate to at least allow the => operator there
as well, like open my_cursor(named_param => 'some value')?

#2Pavel Stehule
pavel.stehule@gmail.com
In reply to: Martin Butter (#1)
Re: => operator for named parameters in open cursor

st 8. 6. 2022 v 14:29 odesílatel Martin Butter <
martin.butter@splendiddata.com> napsal:

Since Postgres 9.5 it is possible to use the => operators for filling in
named parameters in a function call, like perform my_func(named_param =>
'some value'). The old form, with the := operator is still allowed for
backward reference.

But with open cursor, still only the old := operator is allowed.
Wouldn't it be more appropriate to at least allow the => operator there
as well, like open my_cursor(named_param => 'some value')?

+1

Pavel