aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-db/src/main/java/org/sonar
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2016-12-13 13:01:18 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2016-12-13 15:18:40 +0100
commit29beda167202bebddb4f7e09e8e4e6f0a12295a3 (patch)
treec819892568f2a274b586671d3e95a0d39bfe5ece /sonar-db/src/main/java/org/sonar
parent0aa152d65b56a622b8fa6fcc1ee4425470ffe7d3 (diff)
downloadsonarqube-29beda167202bebddb4f7e09e8e4e6f0a12295a3.tar.gz
sonarqube-29beda167202bebddb4f7e09e8e4e6f0a12295a3.zip
SONAR-5471 fix type of INTEGER columns on Oracle
Correct type is NUMBER(38,0) but not INTEGER Signed-off-by: Simon Brandhof <simon.brandhof@sonarsource.com>
Diffstat (limited to 'sonar-db/src/main/java/org/sonar')
-rw-r--r--sonar-db/src/main/java/org/sonar/db/version/IntegerColumnDef.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-db/src/main/java/org/sonar/db/version/IntegerColumnDef.java b/sonar-db/src/main/java/org/sonar/db/version/IntegerColumnDef.java
index c0420dbdf37..af26630785c 100644
--- a/sonar-db/src/main/java/org/sonar/db/version/IntegerColumnDef.java
+++ b/sonar-db/src/main/java/org/sonar/db/version/IntegerColumnDef.java
@@ -46,12 +46,13 @@ public class IntegerColumnDef extends AbstractColumnDef {
public String generateSqlType(Dialect dialect) {
switch (dialect.getId()) {
case PostgreSql.ID:
- case Oracle.ID:
case MySql.ID:
case H2.ID:
return "INTEGER";
case MsSql.ID:
return "INT";
+ case Oracle.ID:
+ return "NUMBER(38,0)";
default:
throw new IllegalArgumentException("Unsupported dialect id " + dialect.getId());
}