Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
database/sql: support output parameters #18079
Feedback requested for https://golang.org/cl/38533 . I need assistance in determining the correct API for OUTPUT parameters with regards to INOUT parameters.
Currently I specify an argument is for an OUTPUT parameter by passing a pointer value inside of
This works because this is part of a larger CL that allows drivers to accept additional parameter types.
Right now for MS SQL Server POC I'm sending the value to the server for both OUTPUT and INOUT situations and setting the fByRefValue flag on it. This works for MS SQL Server.
Do we need to differentiate between OUTPUT and INOUT parameters for Oracle, Posgresql, or MySQL? For instance, should we have an
I don't think it will matter for PostgreSQL. It does not have true stored procedures, it has functions. And the idiomatic way of calling them is with
So for PG I think it would remain idiomatic to use