Skip to content

Commit

Permalink
chore: remove TODOs that are not relevant and resolved SQL TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonli-improving committed Jan 18, 2024
1 parent 6f4daeb commit bef7743
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ public ConnectionStringHostListProvider(
final @NonNull HostListProviderService hostListProviderService,
final @NonNull ConnectionUrlParser connectionUrlParser) {

// TODO: check properties for relevant parameters
this.isSingleWriterConnectionString = SINGLE_WRITER_CONNECTION_STRING.getBoolean(properties);
this.initialUrl = initialUrl;
this.connectionUrlParser = connectionUrlParser;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ public class ConnectionWrapper implements Connection, CanReleaseResources {
protected HostListProviderService hostListProviderService;

protected PluginManagerService pluginManagerService;
protected String targetDriverProtocol; // TODO: consider moving to PluginService
protected String originalUrl; // TODO: consider moving to PluginService
protected String targetDriverProtocol;
protected String originalUrl;
protected @Nullable ConfigurationProfile configurationProfile;

protected @Nullable Throwable openConnectionStacktrace;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,7 @@ public void test_setReadOnlyFalseInTransaction_setAutocommitFalse() throws SQLEx

final Statement stmt = conn.createStatement();
conn.setAutoCommit(false);
stmt.executeQuery(
// TODO: can we replace it with something less database specific?
"SELECT COUNT(*) FROM information_schema.tables");
stmt.executeQuery("SELECT 1");

final SQLException exception =
assertThrows(SQLException.class, () -> conn.setReadOnly(false));
Expand Down

0 comments on commit bef7743

Please sign in to comment.