aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2014-09-19 11:55:54 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2014-09-19 11:55:54 +0200
commit3d3a77a4a988de05d4bc62537812516ab02c89af (patch)
treeec796811a563bd06af34270a72fe89c28e2738cc
parente95028fd70438ee63f8654dc0fa8ec2eb4fa885f (diff)
downloadsonarqube-3d3a77a4a988de05d4bc62537812516ab02c89af.tar.gz
sonarqube-3d3a77a4a988de05d4bc62537812516ab02c89af.zip
SONAR-5640 Fail to upgrade to SQ 4.3 or 4.4 on Oracle
-rw-r--r--sonar-server/src/main/java/org/sonar/server/db/migrations/MassUpdater.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/sonar-server/src/main/java/org/sonar/server/db/migrations/MassUpdater.java b/sonar-server/src/main/java/org/sonar/server/db/migrations/MassUpdater.java
index 306b8f12348..9903cf2a5f9 100644
--- a/sonar-server/src/main/java/org/sonar/server/db/migrations/MassUpdater.java
+++ b/sonar-server/src/main/java/org/sonar/server/db/migrations/MassUpdater.java
@@ -93,8 +93,9 @@ public class MassUpdater {
rs = stmt.executeQuery();
List<Long> rows = new ArrayList<Long>();
while (rs.next()) {
- if (!rs.wasNull()) {
- rows.add(rs.getLong(1));
+ Long l = SqlUtil.getLong(rs, 1);
+ if (l != null) {
+ rows.add(l);
}
}
return rows;