mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Handle resultsets with zero columns correctly in the Query Tool. Fixes #4054
This commit is contained in:
committed by
Dave Page
parent
f8b9a86e95
commit
6aae9d6e20
@@ -2349,7 +2349,7 @@ define('tools.querytool', [
|
||||
var explain_data_array = [],
|
||||
explain_data_json = null;
|
||||
|
||||
if(data.types[0].typname === 'json') {
|
||||
if(data.types[0] && data.types[0].typname === 'json') {
|
||||
/* json is sent as text, parse it */
|
||||
explain_data_json = JSON.parse(data.result[0]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user