From f1f5c892ba95a0584bcebad704dfe81be670f202 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A1lint=20Balku?= <75612187+balint-balku-scraperapi@users.noreply.github.com> Date: Thu, 31 Dec 2020 00:39:50 +0100 Subject: [PATCH] Insert generates invalid SQL when multiple rows and values passed Signed-off-by: Balint Balku --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 1070ddd..5e83d33 100644 --- a/index.js +++ b/index.js @@ -487,6 +487,8 @@ var Base = Class.extend({ } else { values_part[i] += valueArray[i][index]; } + + values_part[i] += ','; } } else { if (typeof valueArray[index] === 'string') {