Skip to content

Commit f019a4e

Browse files
fixes #59 - always use annotation API
to determine executable utPLSQL test units before executing a test
1 parent 260f55a commit f019a4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sqldev/src/main/java/org/utplsql/sqldev/menu/UtplsqlController.xtend

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ class UtplsqlController implements Controller {
277277
connectionName = view.connectionName
278278
}
279279
logger.fine('''connectionName: «connectionName»''')
280-
val preferences = PreferenceModel.getInstance(Preferences.preferences)
281-
val parser = new UtplsqlParser(component.text, if (preferences.checkRunUtplsqlTest) {Connections.instance.getConnection(connectionName)} else {null}, owner)
280+
// issue 59 - always use a connection to ensure the utPL/SQL annotation API is used
281+
val parser = new UtplsqlParser(component.text, Connections.instance.getConnection(connectionName), owner)
282282
val position = component.caretPosition
283283
val path = parser.getPathAt(position)
284284
val utPlsqlWorksheet = new UtplsqlWorksheet(path.pathList, connectionName)

0 commit comments

Comments
 (0)