mirror of https://github.com/apache/nifi.git
NIFI-2802 The implementation classes don't support orderByClause.
This closes #1044.
This commit is contained in:
parent
5198e70d14
commit
77f8503e98
|
@ -48,7 +48,7 @@ public class GenericDatabaseAdapter implements DatabaseAdapter {
|
|||
}
|
||||
if (!StringUtils.isEmpty(orderByClause)) {
|
||||
query.append(" ORDER BY ");
|
||||
query.append(whereClause);
|
||||
query.append(orderByClause);
|
||||
}
|
||||
if (limit != null) {
|
||||
query.append(" LIMIT ");
|
||||
|
|
|
@ -62,7 +62,7 @@ public class OracleDatabaseAdapter implements DatabaseAdapter {
|
|||
}
|
||||
if (!StringUtils.isEmpty(orderByClause)) {
|
||||
query.append(" ORDER BY ");
|
||||
query.append(whereClause);
|
||||
query.append(orderByClause);
|
||||
}
|
||||
if (nestedSelect) {
|
||||
query.append(") a");
|
||||
|
|
|
@ -49,7 +49,7 @@ public class DerbyDatabaseAdapter implements DatabaseAdapter {
|
|||
}
|
||||
if (!StringUtils.isEmpty(orderByClause)) {
|
||||
query.append(" ORDER BY ");
|
||||
query.append(whereClause);
|
||||
query.append(orderByClause);
|
||||
}
|
||||
if (offset != null && offset > 0) {
|
||||
query.append(" OFFSET ");
|
||||
|
|
Loading…
Reference in New Issue