Skip to content

Commit

Permalink
unexpected error message
Browse files Browse the repository at this point in the history
don't attempt mismatch logic if there's no columns to look for. fall through to sql server and do a lookup on the first column.
  • Loading branch information
rene-ye committed Feb 6, 2018
1 parent ded790c commit c2d0997
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1450,6 +1450,8 @@ public NClob getNClob(String parameterName) throws SQLException {
int l = 0;
if (paramNames != null)
l = paramNames.size();
if (l == 0)//Server didn't return anything, user might not have access
return 1;//attempting to look up the first column will return no access exception

// handle `@name` as well as `name`, since `@name` is what's returned
// by DatabaseMetaData#getProcedureColumns
Expand Down

0 comments on commit c2d0997

Please sign in to comment.