From 844729d90e1d9bda8142ccf69310841b51d2674c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20L=C3=B3pez=20P=C3=A9rez?= Date: Thu, 22 Jun 2017 14:00:56 +0100 Subject: [PATCH] Related to: https://github.com/mtxr/SQLTools/issues/115 --- SQLTools.sublime-settings | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SQLTools.sublime-settings b/SQLTools.sublime-settings index 2e11980..24d1b58 100644 --- a/SQLTools.sublime-settings +++ b/SQLTools.sublime-settings @@ -121,11 +121,11 @@ "args": "{username}/{password}@\"(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST={host})(PORT={port})))(CONNECT_DATA=(SERVICE_NAME={service})))\"", "queries": { "desc" : { - "query": "select concat(concat(concat(concat('|', owner), '.'), table_name), '|') as tbls from all_tables;", + "query": "select concat(concat(concat(concat('|', owner), '.'), table_name), '|') as tbls from all_tables UNION select concat(concat(concat(concat('|', owner), '.'), view_name), '|') as tbls from all_views;", "options": ["-S"] }, "columns": { - "query": "select concat(concat(concat(concat('|', c.table_name), '.'), c.column_name), '|') as cols from all_tab_columns c inner join all_tables t ON c.owner = t.owner and c.table_name = t.table_name;", + "query": "SELECT concat(concat(concat(concat('|', c.table_name), '.'), c.column_name), '|') AS cols FROM all_tab_columns c INNER JOIN all_tables t ON c.owner = t.owner AND c.table_name = t.table_name UNION SELECT concat(concat(concat(concat('|', c.table_name), '.'), c.column_name), '|') AS cols FROM all_tab_columns c INNER JOIN all_views t ON c.owner = t.owner AND c.table_name = t.view_name;", "options": ["-S"] }, "desc table": {