Skip to content

Commit

Permalink
Fix | Remove trailing spaces for PreparedStatements (#1215)
Browse files Browse the repository at this point in the history
  • Loading branch information
ulvii authored and rene-ye committed Jan 7, 2020
1 parent f7c346a commit 4d1598b
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5902,10 +5902,7 @@ String replaceParameterMarkers(String sqlSrc, int[] paramPositions, Parameter[]
}
}

while (dstBegin < sqlDst.length)
sqlDst[dstBegin++] = ' ';

return new String(sqlDst);
return new String(sqlDst, 0, dstBegin);
}

/**
Expand Down

0 comments on commit 4d1598b

Please sign in to comment.