You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use your sample, and this is not work for postgres 9.5.
code public static void main(String[] args) { Connection connection = null; try { Class.forName(JDBC_DRIVER); connection = DriverManager.getConnection(DB_URL, USER, PASS); Backup backup = new Backup(connection); print("Backup start time : " + new Date().toString()); backup.execute(System.out); connection.close(); print("Backup end time : " + new Date().toString()); } catch (ClassNotFoundException | SQLException e) { e.printStackTrace(); } finally { try { if (connection != null) { connection.close(); } } catch (SQLException se) { se.printStackTrace(); } } }
trace Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1 at com.intenum.util.db.Row.get(Row.java:20) at com.intenum.util.db.Row.get(Row.java:16) at com.intenum.util.db.Row.getString(Row.java:28) at com.intenum.jdbc.backup.Backup.execute(Backup.java:54)
The text was updated successfully, but these errors were encountered:
I use your sample, and this is not work for postgres 9.5.
code
public static void main(String[] args) { Connection connection = null; try { Class.forName(JDBC_DRIVER); connection = DriverManager.getConnection(DB_URL, USER, PASS); Backup backup = new Backup(connection); print("Backup start time : " + new Date().toString()); backup.execute(System.out); connection.close(); print("Backup end time : " + new Date().toString()); } catch (ClassNotFoundException | SQLException e) { e.printStackTrace(); } finally { try { if (connection != null) { connection.close(); } } catch (SQLException se) { se.printStackTrace(); } } }
trace
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1 at com.intenum.util.db.Row.get(Row.java:20) at com.intenum.util.db.Row.get(Row.java:16) at com.intenum.util.db.Row.getString(Row.java:28) at com.intenum.jdbc.backup.Backup.execute(Backup.java:54)
The text was updated successfully, but these errors were encountered: