Displaying differences for changeset |
@@ -168,7 +168,7 @@ |
if ((null != paths) && (paths.length >= 0)) { |
add = true; |
- query += buildPreparedWhereIsList("path", paths) + " ORDER BY path, name;"; |
+ query += buildPreparedWhereIsList("path", paths); |
} |
if ((null != names) && (names.length >= 0)) { |
@@ -185,7 +185,8 @@ |
query += ((add) ? " AND " : " ") + buildPreparedWhereLikeList("name", partial_names); |
add = true; |
} |
- |
+ query += " ORDER BY path,name;"; |
+ |
try (Connection conn = getConnection(); PreparedStatement stmnt = conn.prepareStatement(query)) { |
int counter = 1; |