empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From doeb...@apache.org
Subject empire-db git commit: EMPIREDB-260 Fixed ArrayIndexOutOfBoundsException
Date Fri, 30 Jun 2017 12:45:27 GMT
Repository: empire-db
Updated Branches:
  refs/heads/master 31cd18d44 -> 6f3cd4751


EMPIREDB-260
Fixed  ArrayIndexOutOfBoundsException


Project: http://git-wip-us.apache.org/repos/asf/empire-db/repo
Commit: http://git-wip-us.apache.org/repos/asf/empire-db/commit/6f3cd475
Tree: http://git-wip-us.apache.org/repos/asf/empire-db/tree/6f3cd475
Diff: http://git-wip-us.apache.org/repos/asf/empire-db/diff/6f3cd475

Branch: refs/heads/master
Commit: 6f3cd47510893155bf810ef3eb40cb4ed32eeadb
Parents: 31cd18d
Author: Rainer Döbele <doebele@apache.org>
Authored: Fri Jun 30 14:45:23 2017 +0200
Committer: Rainer Döbele <doebele@apache.org>
Committed: Fri Jun 30 14:45:23 2017 +0200

----------------------------------------------------------------------
 empire-db/src/main/java/org/apache/empire/db/DBRowSet.java | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/empire-db/blob/6f3cd475/empire-db/src/main/java/org/apache/empire/db/DBRowSet.java
----------------------------------------------------------------------
diff --git a/empire-db/src/main/java/org/apache/empire/db/DBRowSet.java b/empire-db/src/main/java/org/apache/empire/db/DBRowSet.java
index f5112bf..487bab6 100644
--- a/empire-db/src/main/java/org/apache/empire/db/DBRowSet.java
+++ b/empire-db/src/main/java/org/apache/empire/db/DBRowSet.java
@@ -915,9 +915,14 @@ public abstract class DBRowSet extends DBExpr
         {   // Query all keys
             DBCommand cmd = db.createCommand();
             cmd.select(keyColumns);
+            // Set constraints
             for (int i=0; i<parentKey.length; i++)
             {
                 cmd.where(refs[i].getSourceColumn().is(parentKey[i]));
+            }
+            // Set order (descending)
+            for (int i=0; i<keyColumns.length; i++)
+            {
                 cmd.orderBy(keyColumns[i], true);
             }
             // Query all keys


Mime
View raw message