Skip to content

Commit

Permalink
Cache put allowed here.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gray Watson committed Jun 8, 2016
1 parent c62555a commit 81ce1bd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ private <T> Object queryForOne(String statement, Object[] args, FieldType[] argF
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
Expand Down

0 comments on commit 81ce1bd

Please sign in to comment.