mirror of https://github.com/apache/openjpa.git
DB2 Optimize for clause enhancement
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@510336 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2d3871b86b
commit
7eb91d0ec9
|
@ -195,9 +195,8 @@ public class DB2Dictionary
|
|||
|
||||
public String getOptimizeClause(JDBCFetchConfiguration fetch) {
|
||||
Integer rows = null;
|
||||
StringBuffer optimizeString = null;
|
||||
StringBuffer optimizeString = new StringBuffer();
|
||||
if (fetch.getHint("openjpa.hint.optimize") != null) {
|
||||
optimizeString = new StringBuffer();
|
||||
rows = (Integer)fetch.getHint("openjpa.hint.optimize");
|
||||
optimizeString.append(" ").append(optimizeClause).append(" ")
|
||||
.append(rows).append(" ");
|
||||
|
|
Loading…
Reference in New Issue