Skip to content

Commit

Permalink
SDA-61 Campos multienum con tabla puente
Browse files Browse the repository at this point in the history
  • Loading branch information
jortilles committed Aug 6, 2023
1 parent dda0911 commit 0ff1a7d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,13 @@ export abstract class QueryBuilderService {
if( valueListList.length > 0 ){
valueListList.forEach(v=>{
valueListJoins.push(v.valueListSource.target_table);
if(v.valueListSource.bridge_table && v.valueListSource.bridge_table != undefined && v.valueListSource.bridge_table.length >= 1 ){ // les taules pont també han de ser left joins
valueListJoins.push(v.valueListSource.bridge_table );
}
});
}


/** ..........................PER ELS VALUE LISTS................................ */


Expand Down Expand Up @@ -140,8 +144,6 @@ export abstract class QueryBuilderService {

/** ARBRE DELS JOINS A FER */
const joinTree = this.dijkstraAlgorithm(graph, origin, dest.slice(0));



if (this.queryTODO.simple) {
this.query = this.simpleQuery(columns, origin);
Expand Down

0 comments on commit 0ff1a7d

Please sign in to comment.