Skip to content

Commit

Permalink
Merge pull request trinodb#7 from academy-codex/mr_trino_sybase_conne…
Browse files Browse the repository at this point in the history
…ctor_fixes

Mr trino sybase connector fixes
  • Loading branch information
academy-codex authored Jul 17, 2021
2 parents aff265a + 49ebdb0 commit b242817
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
public class SybaseClient
extends BaseJdbcClient
{
// SqlServer supports 2100 parameters in prepared statement, let's create a space for about 4 big IN predicates
public static final int SYBASE_MAX_LIST_EXPRESSIONS = 500;

private static final Joiner DOT_JOINER = Joiner.on(".");
Expand Down
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 b242817

Please sign in to comment.