Handle resultsets with zero columns correctly in the Query Tool. Fixes #4054
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