Skip to content

Commit

Permalink
remove unused method;
Browse files Browse the repository at this point in the history
  • Loading branch information
academy-codex committed Jul 17, 2021
1 parent 618cce6 commit 9bfc73a
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,22 +90,4 @@ public void execute(String sql, String user, String password)
throw new RuntimeException(e);
}
}

public ResultSet executeQuery(String sql)
{
try {
Class.forName("net.sourceforge.jtds.jdbc.Driver");
}
catch (ClassNotFoundException e) {
e.printStackTrace();
}
try (Connection connection = DriverManager.getConnection(getJdbcUrl(), getUsername(), getPassword());
Statement statement = connection.createStatement()) {
return connection.getMetaData().getColumns("testdb", null, "Persons2", null);
// return statement.executeQuery(sql);
}
catch (SQLException e) {
throw new RuntimeException(e);
}
}
}

0 comments on commit 9bfc73a

Please sign in to comment.