Skip to content

Commit

Permalink
Fix | Revert chartAt() change (#1116)
Browse files Browse the repository at this point in the history
  • Loading branch information
ulvii authored Jul 29, 2019
1 parent c4123b2 commit 5c3c9ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,7 @@ private int findColumn(String columnName) throws SQLServerException {
// handle `@name` as well as `name`, since `@name` is what's returned
// by DatabaseMetaData#getProcedureColumns
String columnNameWithoutAtSign = null;
if (columnName.charAt(0) == '@') {
if (columnName.startsWith("@")) {
columnNameWithoutAtSign = columnName.substring(1, columnName.length());
} else {
columnNameWithoutAtSign = columnName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3930,7 +3930,7 @@ final void processEnvChange(TDSReader tdsReader) throws SQLServerException {
String currentHostName = activeConnectionProperties.getProperty("hostNameInCertificate");

// skip the check for hostNameInCertificate if routingServerName is null
if (null != currentHostName && currentHostName.charAt(0) == '*' && (null != routingServerName)
if (null != currentHostName && currentHostName.startsWith("*") && (null != routingServerName)
&& routingServerName.indexOf('.') != -1) {
char[] currentHostNameCharArray = currentHostName.toCharArray();
char[] routingServerNameCharArray = routingServerName.toCharArray();
Expand Down

0 comments on commit 5c3c9ad

Please sign in to comment.