Skip to content

Commit

Permalink
fix for the WHERE conditions containing OR in loading rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Nolife999 committed Aug 7, 2023
1 parent 5c996f3 commit 7e2bb17
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,7 @@ private void applyFormat() throws ArcException {
joinTable.get(i).contains(".") ? joinTable.get(i) : this.env + "." + joinTable.get(i));

// récupération des colonnes de la table
List<String> colsIn = new ArrayList<String>();
colsIn = UtilitaireDao.get(0)
List<String> colsIn = UtilitaireDao.get(0)
.executeRequest(this.connexion,
new ArcPreparedStatementBuilder(
"select " + joinSelect.get(i) + " from " + joinTable.get(i) + " limit 0"))
Expand Down Expand Up @@ -346,7 +345,7 @@ private void applyFormat() throws ArcException {
req.append("\n FROM " + this.tableTempA + " u ) v ) w ");
req.append("\n WHERE false ");
for (String s : wheres) {
req.append("\n AND " + s);
req.append("\n AND (" + s + ")");
}
req.append(";");
UtilitaireDao.get(0).executeImmediate(connexion, req);
Expand Down Expand Up @@ -408,7 +407,7 @@ private void applyFormat() throws ArcException {
req.append("\n ) v ) w ");
req.append("\n WHERE true ");
for (String s : wheres) {
req.append("\n AND " + s);
req.append("\n AND (" + s +")");
}
req.append(";");
UtilitaireDao.get(0).executeImmediate(connexion, req);
Expand Down

0 comments on commit 7e2bb17

Please sign in to comment.