-
Notifications
You must be signed in to change notification settings - Fork 18
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
INPUT_OUTPUT isn't valid #19
Comments
@aaronbartell Good Catch that is a typo in the docs. currently should be What are your thoughts on these aliases?
Should we rename |
Original comment by Aaron Bartell (Bitbucket: aaronbartell, GitHub: aaronbartell).
If the goal is succinctness then I'd do the following. Note I haven't checked for collisions (i.e. whether there is a PARAM and BIND that would both be OUT, for example). Also, I called out BIND_STRING below. I don't believe that is a valid DB2 datatype. I get that it might have been created to make it more language friendly, but it is the one datatype that threw me off and I had to research how to use it by looking at the raw code in the repo. In short, it had the exact opposite effect (instead of simplifying it made my implementation take longer). I'd instead stick to Those are my opinions :-)
|
@aaronbartell I like it! the goal is make it easy to use but at the same time understandable. I'm considering scrapping the current aliases and going with these.
|
Original comment by Aaron Bartell (Bitbucket: aaronbartell, GitHub: aaronbartell). @abmusse, I like what you've proposed. |
@aaronbartell Nice! I will push up the changes upstream. |
@aaronbartell Now that I think about it, I think we should only expose this set of constants
and remove this set
In our docs we would state:
Makes sense to only have what we need. And with the new major version update to 1.0.0 this is the time to straighten it out. |
Original comment by Aaron Bartell (Bitbucket: aaronbartell, GitHub: aaronbartell). Looks good. I would still include |
@aaronbartell sounds good will be:
|
Resolved with PR #17 |
Original report by Aaron Bartell (Bitbucket: aaronbartell, GitHub: aaronbartell).
The docs say either
SQL_PARAM_INPUT_OUTPUT
orINPUT_OUTPUT
can be used but it appears onlySQL_PARAM_INPUT_OUTPUT
works. See below for how to reproduce the error.The text was updated successfully, but these errors were encountered: