-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proc to return a row of OUT values #692
Comments
I'm not sure if output variables are at all supported by the driver here. If they are, then please provide a complete example, using a generic query for such a procedure. |
Sorry, i'm not good english speaker and don't understand well what you are asking. Here is an example:
It's INOUT argument we must give a value this is why the null value in pg-promise functions parameters. for preventing that we can set a default value in procedure definition
Following the documentation, it's normal behavior, proc use For getting procedure working with INOUT arguments we need change querymask to accept at least one row retrieved pg-promise seems to handle INOUT arguments (OUT currently not supported by postgresql). sorry again for my english 🥖 |
Ok, if the procedure can return one row like that, then the API will need to be revised. |
Updated functionality with this commit. |
The update has been released in v10.3.3. @MendesKevin Give it a go, and let me know ;) |
In postgresql documentation:
Procedures are considered like functions who returns nothing but postgresql let you returns something.
And pg-promise use by default querymask 'none' when using proc.
Why ?
The text was updated successfully, but these errors were encountered: