empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From doeb...@apache.org
Subject svn commit: r1362833 - /empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBTable.java
Date Wed, 18 Jul 2012 09:48:31 GMT
Author: doebele
Date: Wed Jul 18 09:48:31 2012
New Revision: 1362833

URL: http://svn.apache.org/viewvc?rev=1362833&view=rev
Log:
EMPIREDB-141
add primary key to index list

Modified:
    empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBTable.java

Modified: empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBTable.java
URL: http://svn.apache.org/viewvc/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBTable.java?rev=1362833&r1=1362832&r2=1362833&view=diff
==============================================================================
--- empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBTable.java (original)
+++ empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBTable.java Wed Jul 18 09:48:31
2012
@@ -296,6 +296,8 @@ public class DBTable extends DBRowSet im
                 throw new InvalidArgumentException("columns["+String.valueOf(i)+"]", columns[i].getFullName());
         // Set primary Key now
         primaryKey = new DBIndex(name + "_PK", DBIndex.PRIMARYKEY, columns);
+        indexes.add(primaryKey);
+        primaryKey.setTable(this);
     }
 
     /**



Mime
View raw message