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)) {
|
if (!StringUtils.isEmpty(orderByClause)) {
|
||||||
query.append(" ORDER BY ");
|
query.append(" ORDER BY ");
|
||||||
query.append(whereClause);
|
query.append(orderByClause);
|
||||||
}
|
}
|
||||||
if (limit != null) {
|
if (limit != null) {
|
||||||
query.append(" LIMIT ");
|
query.append(" LIMIT ");
|
||||||
|
|
|
@ -62,7 +62,7 @@ public class OracleDatabaseAdapter implements DatabaseAdapter {
|
||||||
}
|
}
|
||||||
if (!StringUtils.isEmpty(orderByClause)) {
|
if (!StringUtils.isEmpty(orderByClause)) {
|
||||||
query.append(" ORDER BY ");
|
query.append(" ORDER BY ");
|
||||||
query.append(whereClause);
|
query.append(orderByClause);
|
||||||
}
|
}
|
||||||
if (nestedSelect) {
|
if (nestedSelect) {
|
||||||
query.append(") a");
|
query.append(") a");
|
||||||
|
|
|
@ -49,7 +49,7 @@ public class DerbyDatabaseAdapter implements DatabaseAdapter {
|
||||||
}
|
}
|
||||||
if (!StringUtils.isEmpty(orderByClause)) {
|
if (!StringUtils.isEmpty(orderByClause)) {
|
||||||
query.append(" ORDER BY ");
|
query.append(" ORDER BY ");
|
||||||
query.append(whereClause);
|
query.append(orderByClause);
|
||||||
}
|
}
|
||||||
if (offset != null && offset > 0) {
|
if (offset != null && offset > 0) {
|
||||||
query.append(" OFFSET ");
|
query.append(" OFFSET ");
|
||||||
|
|
Loading…
Reference in New Issue