]> WPIA git - gigi.git/blobdiff - util/org/cacert/gigi/util/DatabaseManager.java
fix: ResultSet.getDate is often wrong as it fetches day-precision times
[gigi.git] / util / org / cacert / gigi / util / DatabaseManager.java
index da164a56b04f3207d36bf2186d3476b76a5b1f91..a6626b746dbc9462c3bc708e96921e8fff73c3e5 100644 (file)
@@ -55,7 +55,7 @@ public class DatabaseManager {
                 File localData = new File("doc/sampleData.sql");
                 if (localData.exists()) {
                     try (FileInputStream f = new FileInputStream(localData)) {
-                        SQLFileManager.addFile(stmt, f, ImportType.PRODUCTION);
+                        SQLFileManager.addFile(stmt, f, ImportType.SAMPLE_DATA);
                     }
                 }
                 stmt.executeBatch();
@@ -63,6 +63,9 @@ public class DatabaseManager {
             } finally {
                 stmt.close();
             }
+        } catch (SQLException e) {
+            e.getNextException().printStackTrace();
+            throw e;
         } finally {
             conn.close();
         }