Skip to content

Commit 97775af

Browse files
need to pass types array with updated database dependencies
1 parent f0e44a0 commit 97775af

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,8 @@ public boolean containsUtplsqlTest(final String owner, final String objectName,
241241
sb.append(" AND (item_name = upper(?) or ? IS NULL)\n");
242242
final String sql = sb.toString();
243243
final Object[] binds = new Object[] {owner, objectName, subobjectName, subobjectName};
244-
final Integer found = jdbcTemplate.queryForObject(sql, Integer.class, binds);
244+
final int[] types = new int[] {Types.VARCHAR, Types.VARCHAR, Types.VARCHAR, Types.VARCHAR};
245+
final Integer found = jdbcTemplate.queryForObject(sql, binds, types, Integer.class);
245246
return found != null && found > 0;
246247
} else {
247248
// using internal API (deprecated, not accessible in latest version)

0 commit comments

Comments
 (0)