Stored procedures and private schema #547
-
Context: I'm trying to store errors in my DB and I don't want that table to be public. So I thought I'd try to make a stored procedure that stores the data into a table in a private schema. Here's my setup SQL:
When I try to call this stored procedure with the following code:
The POST request fails with a What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Can you try creating a function instead of a procedure? Do Procedures have some limitations for now(can't do nested transactions, for one) and they're not supported. Also, I'd recommend sticking to functions, they have more flexible RETURN types. |
Beta Was this translation helpful? Give feedback.
Can you try creating a function instead of a procedure? Do
create or replace function
instead ofcreate or replace procedure
.Procedures have some limitations for now(can't do nested transactions, for one) and they're not supported.
Also, I'd recommend sticking to functions, they have more flexible RETURN types.