|
@@ -628,7 +628,7 @@ public class ODBDatabaseMetaData implements DatabaseMetaData {
|
|
body.put("tablename", tableNamePattern);
|
|
body.put("tablename", tableNamePattern);
|
|
body.put("type", type);
|
|
body.put("type", type);
|
|
|
|
|
|
- Message recvmsg = ctr.request("/odb/system/tables", body);
|
|
|
|
|
|
+ Message recvmsg = ctr.request("/odb/system/tables", new Gson().toJson(body));
|
|
if (recvmsg == null) {
|
|
if (recvmsg == null) {
|
|
throw new SQLException(Error.unableConnectServer);
|
|
throw new SQLException(Error.unableConnectServer);
|
|
}
|
|
}
|
|
@@ -744,7 +744,7 @@ public class ODBDatabaseMetaData implements DatabaseMetaData {
|
|
body.put("tablename", tableNamePattern);
|
|
body.put("tablename", tableNamePattern);
|
|
body.put("column", columnNamePattern);
|
|
body.put("column", columnNamePattern);
|
|
|
|
|
|
- Message recvmsg = ctr.request("/odb/system/columns", body);
|
|
|
|
|
|
+ Message recvmsg = ctr.request("/odb/system/columns", new Gson().toJson(body));
|
|
if (recvmsg == null) {
|
|
if (recvmsg == null) {
|
|
throw new SQLException(Error.unableConnectServer);
|
|
throw new SQLException(Error.unableConnectServer);
|
|
}
|
|
}
|