Allow setting both named & positonal parameters in query & analytics options#148
Conversation
It's confusing. https://docs.oracle.com/cd/E11882_01/appdev.112/e25519/subprograms.htm#LNPLS |
The parameters defined in that document are more akin to function parameters, where you can refer to the same set of parameters either using their position or their name. In SQL++ named and positional parameters are entirely separate sets of parameters. Positional parameters are explicitly defined as such as they are included in the statement with a specific index, it doesn't have anything to do with their physical position in the statement. You can also do things like My opinion is that we shouldn't prevent users from doing something that's supported by the query service. I think if there is a decision that named and positional parameters must not be mixed, that decision should be made by the query service with an appropriate error. The user experience of silently clearing parameters is not great. |
|
Something that's come up in discussions is whether this could be a breaking change. I can see two examples where there could be a risk of breaking change:
So I don't think we'll end up with a breaking change here. Please let me know If there are any other examples where there is a breaking change that I missed, or if anyone disagrees with the above. |
This comment was marked as resolved.
This comment was marked as resolved.
2b55610
2b55610 to
6d15b85
Compare
The server allows setting both in the same request, so
there's no reason we shouldn't allow thatwe should consider allowing that.