NIFI-2802 The implementation classes don't support orderByClause.

This closes #1044.
This commit is contained in:
Byunghwa Yun 2016-09-22 19:00:16 +09:00 committed by Pierre Villard
parent 5198e70d14
commit 77f8503e98
3 changed files with 3 additions and 3 deletions

View File

@ -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 ");

View File

@ -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");

View File

@ -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 ");