Skip to content
This repository was archived by the owner on Mar 12, 2020. It is now read-only.

Commit 73c3fa4

Browse files
authored
Merge pull request #118 from calope/master
Related to: #115
2 parents e3d8418 + 6fe8e24 commit 73c3fa4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SQLTools.sublime-settings

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,11 @@
128128
"args": "{username}/{password}@\"(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST={host})(PORT={port})))(CONNECT_DATA=(SERVICE_NAME={service})))\"",
129129
"queries": {
130130
"desc" : {
131-
"query": "select concat(concat(concat(concat('|', owner), '.'), table_name), '|') as tbls from all_tables;",
131+
"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;",
132132
"options": ["-S"]
133133
},
134134
"columns": {
135-
"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;",
135+
"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;",
136136
"options": ["-S"]
137137
},
138138
"desc table": {

0 commit comments

Comments
 (0)