Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postgresql 9.5 problem #1

Open
alexander00513 opened this issue Jul 22, 2016 · 0 comments
Open

Postgresql 9.5 problem #1

alexander00513 opened this issue Jul 22, 2016 · 0 comments

Comments

@alexander00513
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant