From 079d54f8c06fe0c46b3ba7057ae2a57eddba6824 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Dvo=C5=99=C3=A1k?= Date: Wed, 2 Nov 2022 12:03:31 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20whereIn=20clause?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/query/compiler.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/query/compiler.js b/src/query/compiler.js index b2ff0e5..ebd6c9c 100644 --- a/src/query/compiler.js +++ b/src/query/compiler.js @@ -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;