You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the change introduced by #2308
leads to unexpected behavior in our environment. Postgres functions cannot be triggered as it was in eclipselink 4.0.4
The commit removes specific handling of postgres function calls which seem to be necessary for postgres versions < 17.
To @chicko12345@rdicroce
Hello as I don't know all PostrgreSQL tricks. How is possible to call this kind of stored function CREATE FUNCTION test_fuction1(param1 text, param2 INTEGER, param3 INTEGER) RETURNS VOID
and stored procedure CREATE PROCEDURE test_procedure1(param1 text, param2 INTEGER, param3 INTEGER)
with same call statement like CALL " + <FUNCTION_NAME OR PROCEDURE_NAME> + "(?,?,?). CALL PROCEDURE_NAME(?,?,?) works for stored procedures, but without curly brackets around {CALL FUNCTION_NAME(?,?,?)} works for stored function, but with curly brackets around
I'm not an expert on PG. My company just started using it, and I've since been pulled off to work on other things. But I know that stored function != stored procedure in PG, and you can't call them the same way. IIRC for stored procs, you need to do what my patch does. For stored funcs, you need to use SELECT.
Hi Community,
the change introduced by
#2308
leads to unexpected behavior in our environment. Postgres functions cannot be triggered as it was in eclipselink 4.0.4
The commit removes specific handling of postgres function calls which seem to be necessary for postgres versions < 17.
Local revert of:
This reverts commit 452ffdd.
fixes the problem.
Our environment:
To Reproduce
If a postgres function is defined
Both following versions of the function call throw SQL Exceptions:
The text was updated successfully, but these errors were encountered: