diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-08-24 18:29:36 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-08-24 18:29:36 +0000 |
commit | 3735ba152a48bb16c656b0171d873a66340ad823 (patch) | |
tree | b3506da77928a42310dd10b26c77f1fceecc3e35 /java/das/rdb | |
parent | a7c5f24d55e46e01077183f1e30ab5a811ad9372 (diff) |
TUSCANY-3233 - Applying patch from Florian Pinel
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@807331 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/das/rdb')
-rw-r--r-- | java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/graphbuilder/impl/TableData.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/graphbuilder/impl/TableData.java b/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/graphbuilder/impl/TableData.java index f9084f4014..a99f7ff12f 100644 --- a/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/graphbuilder/impl/TableData.java +++ b/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/graphbuilder/impl/TableData.java @@ -98,7 +98,11 @@ public final class TableData { * @return */ public List getPrimaryKeyValues() { - return primaryKey; + // the primary key is kept in the table registry + // so return a copy to prevent deletion + List primaryKeyCopy = new ArrayList(primaryKey.size()); + primaryKeyCopy.addAll(primaryKey); + return primaryKeyCopy; } public boolean hasValidPrimaryKey() { |