Skip to content

Commit

Permalink
[CONJ-182] correction of "Self assignment of field MySQLStatement.isR…
Browse files Browse the repository at this point in the history
…ewriteable"
  • Loading branch information
rusher committed Sep 15, 2015
1 parent 3d8dfb3 commit c317981
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/org/mariadb/jdbc/MySQLStatement.java
Original file line number Diff line number Diff line change
Expand Up @@ -1196,10 +1196,8 @@ protected void isInsertRewriteable(String sql) {
if (firstRewrite == null) {
firstRewrite = sql.substring(0, index);
}
boolean isRewrite = sql.startsWith(firstRewrite);
if (isRewrite) {
isRewriteable = isRewriteable && true;
}
sql.startsWith(firstRewrite);

} finally {
stLock.writeLock().unlock();
}
Expand Down

0 comments on commit c317981

Please sign in to comment.