2 Aug 2004 07:06
[opennms-cvs] CVS: opennms/src/install/org/opennms/install Installer.java,1.6,1.6.2.1
DJ Gregor <djgregor <at> users.sourceforge.net>
2004-08-02 05:06:56 GMT
2004-08-02 05:06:56 GMT
Update of /cvsroot/opennms/opennms/src/install/org/opennms/install
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31669
Modified Files:
Tag: personal-dj-branch
Installer.java
Log Message:
Fix for two problems in bug #890:
1. There was an error when catching an exception in changeTable if the
new table hadn't been created, which was happening due to #2. This
would cause another exception to be thrown and the old table wasn't
moved back. Now, we catch and ignore SQLExceptions when trying to call
"DROP TABLE ..." in the Exception handling code, in case the table
we are trying to drop wasn't created.
2. Since the code in changeTable moved the table, the named indexes on that
table, e.g. pk_dpname, were still left around, and creating the new
table would fail because it would try to add indexes with the same name.
When this happened, it threw an exception which triggered #1 when the
exception handling code tried to drop the table which hadn't been
created. The fix to the index problem, we now copy the data to a
temporary table, drop the original table, and recreate it.
Index: Installer.java
===================================================================
RCS file: /cvsroot/opennms/opennms/src/install/org/opennms/install/Installer.java,v
retrieving revision 1.6
retrieving revision 1.6.2.1
diff -u -r1.6 -r1.6.2.1
--- Installer.java 26 Jul 2004 18:58:53 -0000 1.6
+++ Installer.java 2 Aug 2004 05:06:53 -0000 1.6.2.1
(Continue reading)
RSS Feed