mirror of
https://gitee.com/devlive-community/datacap.git
synced 2024-12-02 03:57:35 +08:00
[Fix] [Plugin] Fixed Incomplete data returned by cratedb
This commit is contained in:
parent
129cbf3b63
commit
c701f0b59a
@ -57,8 +57,10 @@ public class CrateDBAdapter
|
||||
else {
|
||||
headers.addAll(applyResponse.getHeaders());
|
||||
types.addAll(applyResponse.getTypes());
|
||||
List<Object> _columns = (List<Object>) applyResponse.getColumns().get(0);
|
||||
columns.add(handlerFormatter(httpConfigure.getFormat(), headers, _columns));
|
||||
for (Object column : applyResponse.getColumns()) {
|
||||
List<Object> _columns = (List<Object>) column;
|
||||
columns.add(handlerFormatter(httpConfigure.getFormat(), headers, _columns));
|
||||
}
|
||||
}
|
||||
response.setIsSuccessful(Boolean.TRUE);
|
||||
}
|
||||
|
@ -7,7 +7,7 @@ public interface Plugin
|
||||
{
|
||||
default String validator()
|
||||
{
|
||||
return "SELECT version()";
|
||||
return "SELECT version() AS version";
|
||||
}
|
||||
|
||||
String name();
|
||||
|
Loading…
Reference in New Issue
Block a user