From 14a109d5d76e7c0187ea14a7d59cf5a78664f87e Mon Sep 17 00:00:00 2001 From: Alexey Kasyanchuk Date: Thu, 16 Aug 2018 15:50:22 +0300 Subject: [PATCH] fix(replication): fix replication from object info --- src/background/mysql.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/background/mysql.js b/src/background/mysql.js index c830ac5..47e4fd7 100644 --- a/src/background/mysql.js +++ b/src/background/mysql.js @@ -49,6 +49,9 @@ const expand = (sphinx) => { { if(values[val] === null) continue; + + if(typeof values[val] == 'object') + values[val] = JSON.stringify(values[val]) names += '`' + val + '`,'; valuesData += sphinx.escape(values[val]) + ',';