mirror of
https://github.com/YuhangQ/InvoDB.git
synced 2025-01-27 15:10:57 +00:00
fix error
This commit is contained in:
parent
60cab69963
commit
a442d58997
@ -64,17 +64,16 @@ void terminal() {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
auto res = col->query(json);
|
auto res = col->query(json);
|
||||||
|
printf("query result: \n");
|
||||||
|
for(auto& j : res) {
|
||||||
|
printf(" - %s\n", j.dump().c_str());
|
||||||
|
}
|
||||||
} catch(const char *err) {
|
} catch(const char *err) {
|
||||||
printf("ERROR: %s\n", err);
|
printf("ERROR: %s\n", err);
|
||||||
} catch(...) {
|
} catch(...) {
|
||||||
printf("ERROR: query failed. check your input.\n");
|
printf("ERROR: query failed. check your input.\n");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("query result: \n");
|
|
||||||
for(auto& j : res) {
|
|
||||||
printf(" - %s\n", j.dump().c_str());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user