Revision 2484
Added by Matt Jones over 19 years ago
src/upgrade_db_to_1_5.java | ||
---|---|---|
81 | 81 |
// Copy numerical values from nodedata to |
82 | 82 |
// nodedatanumerical column in xml_nodes |
83 | 83 |
System.out.println( |
84 |
"Please be patient as the next upgrade step can be extremely time consuming."); |
|
85 |
System.out.println( |
|
84 | 86 |
"Copy numerical values from nodedata to nodedatanumerical " |
85 | 87 |
+ "in xml_nodes..."); |
86 | 88 |
|
... | ... | |
108 | 110 |
pstmt.close(); |
109 | 111 |
|
110 | 112 |
count++; |
113 |
if (count%5 == 0) { |
|
114 |
System.out.print(count + "..."); |
|
115 |
} |
|
111 | 116 |
} |
112 | 117 |
} catch (NumberFormatException nfe) { |
113 | 118 |
|
... | ... | |
115 | 120 |
System.out.println("Exception:" + e.getMessage()); |
116 | 121 |
} |
117 | 122 |
} |
118 |
System.out.println("Done. " + count + " values copied."); |
|
123 |
System.out.println("\nDone. " + count + " values copied.");
|
|
119 | 124 |
|
120 | 125 |
rset.close(); |
121 | 126 |
sqlStatement.close(); |
Also available in: Unified diff
Modified the upgrade java script to provide more effective feedback during the
nodedata copy operation so that users don't think it has failed or crashed.