This commit is contained in:
zyyang 2021-01-04 10:48:55 +08:00
parent 27e6937570
commit 54ca0ef5e3
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ public class RestfulStatement implements Statement {
throw new SQLException("Database not specified or available");
final String url = "http://" + conn.getHost().trim() + ":" + conn.getPort() + "/rest/sql";
HttpClientPoolUtil.execute(url, "use " + conn.getDatabase());
// HttpClientPoolUtil.execute(url, "use " + conn.getDatabase());
String result = HttpClientPoolUtil.execute(url, sql);
JSONObject jsonObject = JSON.parseObject(result);
if (jsonObject.getString("status").equals("error")) {