◐ Shell
reader mode source ↗
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
File filter
Conversations
Jump to
Diff view
Apply and reload
Show whitespace
Diff view
Apply and reload
17 changes: 7 additions & 10 deletions sqldev/src/main/java/org/utplsql/sqldev/dal/UtplsqlDao.xtend
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class UtplsqlDao {
public static val FIRST_VERSION_WITH_INTERNAL_ANNOTATION_API = 3000004
public static val FIRST_VERSION_WITH_ANNOTATION_API = 3001003
public static val FIRST_VERSION_WITHOUT_INTERNAL_API = 3001008
public static val NOT_YET_AVAILABLE = 9009009
var Connection conn
var JdbcTemplate jdbcTemplate
// cache fields
Expand Up @@ -183,9 +183,8 @@ class UtplsqlDao {
*/
def boolean containsUtplsqlTest(String owner, String objectName, String subobjectName) {
try {
if (normalizedUtPlsqlVersionNumber >= NOT_YET_AVAILABLE && objectName !== null && subobjectName !== null) {
// use faster check function available since v3.1.3 (FIRST_VERSION_WITH_ANNOTATION_API)
// disabled (NOT_YET_AVAILABLE) due to wrong results in v3.1.7
val sql = '''
DECLARE
l_return VARCHAR2(1) := '0';
Expand Down @@ -253,9 +252,8 @@ class UtplsqlDao {
}

def boolean containsUtplsqlTest(String owner) {
if (normalizedUtPlsqlVersionNumber >= NOT_YET_AVAILABLE) {
// use faster check function available since v3.1.3 (FIRST_VERSION_WITH_ANNOTATION_API)
// disabled (NOT_YET_AVAILABLE) due to wrong results in v3.1.7
val sql = '''
DECLARE
l_return VARCHAR2(1) := '0';
Expand All @@ -282,9 +280,8 @@ class UtplsqlDao {
}

def boolean containsUtplsqlTest(String owner, String objectName) {
if (normalizedUtPlsqlVersionNumber >= NOT_YET_AVAILABLE) {
// use faster check function available since v3.1.3 (FIRST_VERSION_WITH_ANNOTATION_API)
// disabled (NOT_YET_AVAILABLE) due to wrong results in v3.1.7
val sql = '''
DECLARE
l_return VARCHAR2(1) := '0';
Expand Down
30 changes: 14 additions & 16 deletions sqldev/src/test/java/org/utplsql/sqldev/test/dal/DalTest.xtend
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import org.springframework.jdbc.BadSqlGrammarException
import org.utplsql.sqldev.dal.UtplsqlDao
import org.utplsql.sqldev.model.ut.Annotation
import org.utplsql.sqldev.test.AbstractJdbcTest
import org.junit.Ignore

class DalTest extends AbstractJdbcTest {

Expand Down Expand Up @@ -147,9 +146,8 @@ class DalTest extends AbstractJdbcTest {
}

@Test
@Ignore
def void containsUtplsqlTest999() {
containsUtplsqlTest("9.9.9")
}

def void annotations(String utPlsqlVersion) {
Expand Down @@ -206,8 +204,8 @@ class DalTest extends AbstractJdbcTest {
}

@Test
def void annotations999() {
annotations("9.9.9")
}

def void testablesPackages(String utPlsqlVersion) {
Expand Down Expand Up @@ -252,8 +250,8 @@ class DalTest extends AbstractJdbcTest {
}

@Test
def void testablesPackages999() {
testablesPackages("9.9.9")
}

def void testablesTypes(String utPlsqlVersion) {
Expand Up @@ -291,8 +289,8 @@ class DalTest extends AbstractJdbcTest {
}

@Test
def void testablesTypes999() {
testablesTypes("9.9.9")
}

def void testablesFunctions(String utPlsqlVersion) {
Expand Down Expand Up @@ -323,8 +321,8 @@ class DalTest extends AbstractJdbcTest {
}

@Test
def void testablesFunctions999() {
testablesFunctions("9.9.9")
}

def void testablesProcedures(String utPlsqlVersion) {
Expand Up @@ -355,8 +353,8 @@ class DalTest extends AbstractJdbcTest {
}

@Test
def void testablesProcedures999() {
testablesProcedures("9.9.9")
}

def void runnables(String utPlsqlVersion) {
Expand Down Expand Up @@ -422,8 +420,8 @@ class DalTest extends AbstractJdbcTest {
}

@Test
def void runnables999() {
runnables("9.9.9")
}

@Test
Expand Down
Toggle all file notes Toggle all file annotations