From 18bca385572a5c6d9dd0cfefa8cc6aff1600625b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Lo=CC=81pez=20Pe=CC=81rez?= Date: Mon, 3 Jul 2017 12:39:44 +0100 Subject: [PATCH] Update to https://github.com/mtxr/SQLTools/pull/118#issuecomment-312618299 --- SQLTools.sublime-settings | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SQLTools.sublime-settings b/SQLTools.sublime-settings index 24d1b58..8b05ae8 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 UNION select concat(concat(concat(concat('|', owner), '.'), view_name), '|') as tbls from all_views;", + "query": "select concat(concat(concat(concat('|', owner), '.'), table_name), '|') as tbls from all_tables UNION ALL 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 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;", + "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 ALL 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": {