diff --git a/docs/en_US/release_notes_4_4.rst b/docs/en_US/release_notes_4_4.rst index f7d264fc9..d8c818dd0 100644 --- a/docs/en_US/release_notes_4_4.rst +++ b/docs/en_US/release_notes_4_4.rst @@ -15,3 +15,4 @@ Features Bug fixes ********* +| `Bug #4054 `_ - Handle resultsets with zero columns correctly in the Query Tool. \ No newline at end of file diff --git a/web/pgadmin/tools/sqleditor/static/js/sqleditor.js b/web/pgadmin/tools/sqleditor/static/js/sqleditor.js index e7e953dd9..7b4da193f 100644 --- a/web/pgadmin/tools/sqleditor/static/js/sqleditor.js +++ b/web/pgadmin/tools/sqleditor/static/js/sqleditor.js @@ -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]);