change
This commit is contained in:
parent
b29c531d78
commit
90e48a7ce0
|
@ -93,6 +93,7 @@ public abstract class AbstractConnection extends WrapperImpl implements Connecti
|
||||||
public void setCatalog(String catalog) throws SQLException {
|
public void setCatalog(String catalog) throws SQLException {
|
||||||
if (isClosed())
|
if (isClosed())
|
||||||
throw TSDBError.createSQLException(TSDBErrorNumbers.ERROR_CONNECTION_CLOSED);
|
throw TSDBError.createSQLException(TSDBErrorNumbers.ERROR_CONNECTION_CLOSED);
|
||||||
|
/*
|
||||||
try (Statement stmt = createStatement()) {
|
try (Statement stmt = createStatement()) {
|
||||||
boolean execute = stmt.execute("use " + catalog);
|
boolean execute = stmt.execute("use " + catalog);
|
||||||
if (execute)
|
if (execute)
|
||||||
|
@ -100,6 +101,9 @@ public abstract class AbstractConnection extends WrapperImpl implements Connecti
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
// do nothing
|
// do nothing
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
this.catalog = catalog;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue