Skip to content

Commit

Permalink
πŸ› Fix whereIn clause
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas2D committed Nov 2, 2022
1 parent 3186ba8 commit 079d54f
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/query/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,22 +138,6 @@ class QueryCompiler_Firebird extends QueryCompiler {
},
};
}

whereIn(statement) {
if (Array.isArray(statement.column)) {
const conditions = statement.value.map((valueCols) =>
valueCols
.map((value, idx) => {
return `${this.formatter.columnize(
statement.column[idx]
)} = ${this.formatter.values(value)}`;
})
.join(" and ")
);
return `( ${conditions.join("\n or ")} )`;
}
return super.whereIn(statement);
}
}

export default QueryCompiler_Firebird;

0 comments on commit 079d54f

Please sign in to comment.