change
This commit is contained in:
parent
e8019d4a61
commit
d7dfde2d09
|
@ -75,8 +75,8 @@ public class RestfulStatement extends AbstractStatement {
|
||||||
return executeOneQuery(url, sql);
|
return executeOneQuery(url, sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.database == null || this.database.isEmpty())
|
// if (this.database == null || this.database.isEmpty())
|
||||||
throw TSDBError.createSQLException(TSDBErrorNumbers.ERROR_DATABASE_NOT_SPECIFIED_OR_AVAILABLE);
|
// throw TSDBError.createSQLException(TSDBErrorNumbers.ERROR_DATABASE_NOT_SPECIFIED_OR_AVAILABLE);
|
||||||
HttpClientPoolUtil.execute(url, "use " + this.database);
|
HttpClientPoolUtil.execute(url, "use " + this.database);
|
||||||
return executeOneQuery(url, sql);
|
return executeOneQuery(url, sql);
|
||||||
}
|
}
|
||||||
|
@ -93,8 +93,8 @@ public class RestfulStatement extends AbstractStatement {
|
||||||
return executeOneUpdate(url, sql);
|
return executeOneUpdate(url, sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.database == null || this.database.isEmpty())
|
// if (this.database == null || this.database.isEmpty())
|
||||||
throw TSDBError.createSQLException(TSDBErrorNumbers.ERROR_DATABASE_NOT_SPECIFIED_OR_AVAILABLE);
|
// throw TSDBError.createSQLException(TSDBErrorNumbers.ERROR_DATABASE_NOT_SPECIFIED_OR_AVAILABLE);
|
||||||
|
|
||||||
HttpClientPoolUtil.execute(url, "use " + this.database);
|
HttpClientPoolUtil.execute(url, "use " + this.database);
|
||||||
return executeOneUpdate(url, sql);
|
return executeOneUpdate(url, sql);
|
||||||
|
|
|
@ -11,8 +11,8 @@ import java.util.Properties;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
public class RestfulStatementTest {
|
public class RestfulStatementTest {
|
||||||
private static final String host = "127.0.0.1";
|
// private static final String host = "127.0.0.1";
|
||||||
// private static final String host = "master";
|
private static final String host = "master";
|
||||||
private static Connection conn;
|
private static Connection conn;
|
||||||
private static Statement stmt;
|
private static Statement stmt;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue