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:
parent
f8b9a86e95
commit
6aae9d6e20
@ -15,3 +15,4 @@ Features
|
||||
Bug fixes
|
||||
*********
|
||||
|
||||
| `Bug #4054 <https://redmine.postgresql.org/issues/4054>`_ - Handle resultsets with zero columns correctly in the Query Tool.
|
@ -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]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user