mirror of
https://github.com/vrana/adminer.git
synced 2025-08-16 11:34:10 +02:00
Elasticsearch: Show executed query as a json
This commit is contained in:
committed by
Jakub Vrana
parent
4b6833ba65
commit
33234fef19
@@ -148,7 +148,7 @@ if (isset($_GET["elastic"])) {
|
|||||||
$start = microtime(true);
|
$start = microtime(true);
|
||||||
$search = $this->_conn->query($query, $data);
|
$search = $this->_conn->query($query, $data);
|
||||||
if ($print) {
|
if ($print) {
|
||||||
echo $adminer->selectQuery("$query: " . print_r($data, true), $start, !$search);
|
echo $adminer->selectQuery("$query: " . json_encode($data), $start, !$search);
|
||||||
}
|
}
|
||||||
if (!$search) {
|
if (!$search) {
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user