Revision: 3320
Author: [email protected]
Date: Sun Feb 21 07:14:17 2010
Log: Update the physical name of the index when applying changes
http://code.google.com/p/power-architect/source/detail?r=3320

Modified:
 /trunk/src/ca/sqlpower/architect/swingui/IndexEditPanel.java

=======================================
--- /trunk/src/ca/sqlpower/architect/swingui/IndexEditPanel.java Mon Feb 8 10:12:47 2010 +++ /trunk/src/ca/sqlpower/architect/swingui/IndexEditPanel.java Sun Feb 21 07:14:17 2010
@@ -267,8 +267,12 @@
                 //The operation is successful
                 index.makeColumnsLike(indexCopy);
                 SQLTable parentTable = parent;
-                index.setName(name.getText());
-                index.setUnique(unique.isSelected());
+                index.setName(name.getText().trim());
+
+                               // make the physical name identitical as long 
as there  is
+                               // no separate input field for it
+                               index.setPhysicalName(name.getText().trim());
+                               index.setUnique(unique.isSelected());
                 index.setClustered(clustered.isSelected());
if (indexType.getSelectedItem().toString().equals(DEFAULT_INDEX_TYPE)) {
                     index.setType(null);

Reply via email to