Fix handling of JSON in the Query Tool with NULL elements. Fixes #4263

This commit is contained in:
Aditya Toshniwal
2019-05-23 08:53:29 +01:00
committed by Dave Page
parent f1ef7b0346
commit ee37be56f9
3 changed files with 74 additions and 1 deletions

View File

@@ -2424,7 +2424,7 @@ define('tools.querytool', [
if(data.types[0] && data.types[0].typname === 'json') {
/* json is sent as text, parse it */
explain_data_json = JSON.parse(data.result[0]);
explain_data_json = JSON.parse(data.result[0][0]);
}
if (explain_data_json && explain_data_json[0] &&