Changeset 3176
- Timestamp:
- 08/06/08 08:30:13 (5 years ago)
- Location:
- PP/branches/leap-second-dev-branch/jungle/src/org/trinet
- Files:
-
- 2 edited
-
jasi/DataSource.java (modified) (1 diff)
-
jiggle/Jiggle.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
PP/branches/leap-second-dev-branch/jungle/src/org/trinet/jasi/DataSource.java
r2497 r3176 141 141 try { 142 142 if (s != null) s.close(); 143 } catch (SQLException ex) { 144 ex.printStackTrace(); 145 } 146 } 147 return status; 148 } 149 150 public static int utcCompliant() { 151 if (isNull()) return -1; 152 Connection c = getConnection(); 153 if (c == null) return -1; 154 int status = -1; 155 Statement s = null; 156 ResultSet rs = null; 157 try { 158 s = c.createStatement(); 159 rs = s.executeQuery("SELECT WAVE.isJavaUTC from dual"); 160 if (rs.next()) { 161 status = rs.getInt(1); 162 if (rs.wasNull()) status = -1; 163 } 164 } catch (SQLException ex) { 165 ex.printStackTrace(); 166 } 167 finally { 168 try { 169 if (s != null) { 170 if (rs != null) rs.close(); 171 s.close(); 172 } 143 173 } catch (SQLException ex) { 144 174 ex.printStackTrace(); -
PP/branches/leap-second-dev-branch/jungle/src/org/trinet/jiggle/Jiggle.java
r3157 r3176 1199 1199 DataSource.enableSessionTrace(); 1200 1200 System.out.println("INFO: Session SQL trace ENABLED on database."); 1201 } 1202 1203 if (DataSource.utcCompliant() == 0) { 1204 String msg = "<html><b>ERROR:</b> Database requires NOMINAL version, this Jiggle is UTC version!<br>"+ 1205 "URL = "+ DataSource.getHostName() + "<br>"+ 1206 "Dbase = "+ DataSource.getDbaseName() +"<br>"+ 1207 "Username = " + DataSource.getUserName()+"<br>"+ 1208 "Port #: "+ DataSource.getPort()+"</html>"; 1209 popInfoFrame("Jiggle/DB Mismatch", msg); 1210 if (confirmShutDown()) stop(); 1201 1211 } 1202 1212
Note: See TracChangeset
for help on using the changeset viewer.
