From 4737124c5de95a400a284301e8f30a2a15641a97 Mon Sep 17 00:00:00 2001 From: Gajus Kuizinas Date: Mon, 5 Jun 2017 14:23:21 +0100 Subject: [PATCH] fix: merge taggled template literal values with direct values --- src/utilities/mapTaggedTemplateLiteralInvocation.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utilities/mapTaggedTemplateLiteralInvocation.js b/src/utilities/mapTaggedTemplateLiteralInvocation.js index 048e7448..b7a70f7b 100644 --- a/src/utilities/mapTaggedTemplateLiteralInvocation.js +++ b/src/utilities/mapTaggedTemplateLiteralInvocation.js @@ -10,7 +10,10 @@ export default (targetMethod: *) => { if (typeof maybeQuery === 'string') { return targetMethod(maybeQuery, values); } else { - return targetMethod(maybeQuery.sql, maybeQuery.values); + return targetMethod(maybeQuery.sql, [ + ...maybeQuery.values, + values + ]); } }; };