recognize CallableStatement parameter names with leading '@'#495
Merged
AfsanehR-zz merged 2 commits intomicrosoft:devfrom Oct 7, 2017
gordthompson:allow-at-sign-prefixed-param-names
Merged
recognize CallableStatement parameter names with leading '@'#495AfsanehR-zz merged 2 commits intomicrosoft:devfrom gordthompson:allow-at-sign-prefixed-param-names
AfsanehR-zz merged 2 commits intomicrosoft:devfrom
gordthompson:allow-at-sign-prefixed-param-names
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #495 +/- ##
============================================
+ Coverage 46.47% 46.56% +0.08%
- Complexity 2214 2220 +6
============================================
Files 108 108
Lines 25312 25316 +4
Branches 4183 4182 -1
============================================
+ Hits 11765 11788 +23
+ Misses 11513 11498 -15
+ Partials 2034 2030 -4
Continue to review full report at Codecov.
|
Contributor
Author
|
Addresses issue #496 |
peterbae
approved these changes
Sep 28, 2017
Contributor
peterbae
left a comment
There was a problem hiding this comment.
I also ran some more testing, and the changes look good. Thanks for the contribution!
AfsanehR-zz
reviewed
Oct 6, 2017
|
|
||
| // handle `@name` as well as `name`, since `@name` is what's returned | ||
| // by DatabaseMetaData#getProcedureColumns | ||
| if (columnName.startsWith("@")) { |
Contributor
Contributor
Author
There was a problem hiding this comment.
@v-afrafi - Good point. Your change would actually have to be made in two places, so I tweaked it a bit.
AfsanehR-zz
approved these changes
Oct 7, 2017
Contributor
|
Thanks @gordthompson for fixing this issue 🎉 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When passing parameters to a CallableStatement by name, recognize names that start with '@' as reported by
DatabaseMetaData#getProcedureColumns.(ref: Stack Overflow question here)