Skip to content

Commit

Permalink
Replace limited length leq column to real values, about Universite-Gu…
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-f committed Jan 23, 2024
1 parent 074efc5 commit fed1de4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -402,15 +402,15 @@ private String forgeCreateTable(String tableName) {
sb.append(" (IDRECEIVER bigint NOT NULL");
}
if (ldenConfig.computeLAEQOnly){
sb.append(", LAEQ numeric(5, 2)");
sb.append(", LAEQ REAL");
sb.append(");");
} else {
for (int idfreq = 0; idfreq < ldenConfig.propagationProcessPathDataDay.freq_lvl.size(); idfreq++) {
sb.append(", HZ");
sb.append(ldenConfig.propagationProcessPathDataDay.freq_lvl.get(idfreq));
sb.append(" numeric(5, 2)");
sb.append(" REAL");
}
sb.append(", LAEQ numeric(5, 2), LEQ numeric(5, 2)");
sb.append(", LAEQ REAL, LEQ REAL");
sb.append(");");
}
return sb.toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,9 @@ def forgeCreateTable(Sql sql, String tableName, LDENConfig ldenConfig, String ge
for (int idfreq = 0; idfreq < freqLvl.size(); idfreq++) {
sb.append(", HZ");
sb.append(freqLvl.get(idfreq));
sb.append(" numeric(5, 2)");
sb.append(" REAL");
}
sb.append(", LAEQ numeric(5, 2), LEQ numeric(5, 2) ) AS SELECT PK");
sb.append(", LAEQ REAL, LEQ REAL ) AS SELECT PK");
if (!ldenConfig.mergeSources) {
sb.append(", IDSOURCE");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,9 @@ def forgeCreateTable(Sql sql, String tableName, LDENConfig ldenConfig, String ge
for (int idfreq = 0; idfreq < pathData.freq_lvl.size(); idfreq++) {
sb.append(", HZ");
sb.append(pathData.freq_lvl.get(idfreq));
sb.append(" numeric(5, 2)");
sb.append(" REAL");
}
sb.append(", LAEQ numeric(5, 2), LEQ numeric(5, 2) ) AS SELECT PK");
sb.append(", LAEQ REAL, LEQ REAL ) AS SELECT PK");
if (!ldenConfig.mergeSources) {
sb.append(", IDSOURCE");
}
Expand Down

0 comments on commit fed1de4

Please sign in to comment.