-
Notifications
You must be signed in to change notification settings - Fork 428
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
String index out of range parameter metadata #353
String index out of range parameter metadata #353
Conversation
Codecov Report
@@ Coverage Diff @@
## RTW_6.2.0 #353 +/- ##
===============================================
- Coverage 40.05% 40.04% -0.01%
- Complexity 1878 1879 +1
===============================================
Files 107 107
Lines 24480 24482 +2
Branches 4036 4037 +1
===============================================
- Hits 9805 9804 -1
+ Misses 12838 12833 -5
- Partials 1837 1845 +8
Continue to review full report at Codecov.
|
*/ | ||
@Test | ||
public void testQueryWithSpaceAndEndCommentMarkInColumnName() throws SQLServerException { | ||
pstmt = connection.prepareStatement("SELECT [c1*/someStrintg withspace] from " + spaceTable); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
theres an extra t character in "someStrintg withspace"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done, thank you.
@@ -414,6 +416,11 @@ private static void createCharTable() throws SQLException { | |||
stmt.execute("Create table " + charTable + " (" + "c1 char(50) not null," + "c2 varchar(20) not null," + "c3 nchar(30) not null," | |||
+ "c4 nvarchar(60) not null," + "c5 text not null," + "c6 ntext not null" + ")"); | |||
} | |||
|
|||
private static void createSpaceTable() throws SQLException { | |||
stmt.execute("Create table " + spaceTable + " (" + "[c1*/someStrintg withspace] char(50) not null," + "c2 varchar(20) not null," |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
theres an extra t character in "someStrintg withspace"
fix an existing bug when getting parameter metadata and column name has end comment mark and space. Better to merge this PR as soon as possible.