Permalink
Browse files

Cache put allowed here.

  • Loading branch information...
1 parent c62555a commit 81ce1bd5c80a580901cfd2a0bdd2dc091ef2cdd1 @j256 committed Jun 8, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/com/j256/ormlite/jdbc/JdbcDatabaseConnection.java
@@ -301,7 +301,7 @@ private int update(String statement, Object[] args, FieldType[] argFieldTypes, S
DatabaseResults results = null;
try {
statementSetArgs(stmt, args, argFieldTypes);
- results = new JdbcDatabaseResults(stmt, stmt.executeQuery(), objectCache, false);
+ results = new JdbcDatabaseResults(stmt, stmt.executeQuery(), objectCache, true);
logger.trace("{} statement is prepared and executed: {}", label, statement);
if (!results.first()) {
// no results at all

0 comments on commit 81ce1bd

Please sign in to comment.