Skip to content

Commit

Permalink
Performance | Disabled pattern matching when using CallableStatements…
Browse files Browse the repository at this point in the history
… and SQLServerParameterMetaData (#1149)
  • Loading branch information
ulvii authored Oct 4, 2019
1 parent e65cb56 commit 94beeac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,7 @@ private int findColumn(String columnName) throws SQLServerException {
// we should always have a procedure name part
metaQuery.append("@procedure_name=");
metaQuery.append(threePartName.getProcedurePart());
metaQuery.append(" , @ODBCVer=3");
metaQuery.append(" , @ODBCVer=3, @fUsePattern=0");
} else {
// This should rarely happen, this will only happen if we can't find the stored procedure name
// invalidly formatted call syntax.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,8 @@ private void checkClosed() throws SQLServerException {
try (SQLServerStatement s = (SQLServerStatement) con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_READ_ONLY);
SQLServerResultSet rsProcedureMeta = s.executeQueryInternal(
con.isKatmaiOrLater() ? "exec sp_sproc_columns_100 " + sProc + ", @ODBCVer=3"
: "exec sp_sproc_columns " + sProc + ", @ODBCVer=3")) {
con.isKatmaiOrLater() ? "exec sp_sproc_columns_100 " + sProc + ", @ODBCVer=3, @fUsePattern=0"
: "exec sp_sproc_columns " + sProc + ", @ODBCVer=3, @fUsePattern=0")) {

// if rsProcedureMeta has next row, it means the stored procedure is found
if (rsProcedureMeta.next()) {
Expand Down

0 comments on commit 94beeac

Please sign in to comment.