Skip to content

Commit f6fbba0

Browse files
Check all dba_objects used in the data access layer to fix #99
1 parent 0b53032 commit f6fbba0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

sqldev/src/main/java/org/utplsql/sqldev/dal/UtplsqlDao.xtend

+9-1
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,17 @@ class UtplsqlDao {
121121
if (cachedDbaViewAccessible === null) {
122122
try {
123123
val sql = '''
124-
SELECT 1
124+
SELECT 1 AS dummy
125125
FROM dba_objects
126126
WHERE 1=2
127+
UNION ALL
128+
SELECT 1
129+
FROM dba_synonyms
130+
WHERE 1=2
131+
UNION ALL
132+
SELECT 1
133+
FROM dba_dependencies
134+
WHERE 1=2
127135
'''
128136
jdbcTemplate.execute(sql)
129137
cachedDbaViewAccessible = true

0 commit comments

Comments
 (0)