From b6afd24172465f71464192881932cc0832710a5f Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Sun, 18 Dec 2022 18:29:21 +0100 Subject: [PATCH] fix --- packages/sqltree/src/evaluateExpression.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/sqltree/src/evaluateExpression.ts b/packages/sqltree/src/evaluateExpression.ts index e2d78f5e..9bc8ba74 100644 --- a/packages/sqltree/src/evaluateExpression.ts +++ b/packages/sqltree/src/evaluateExpression.ts @@ -1,4 +1,4 @@ -import _ from 'lodash'; +import _get from 'lodash/get'; import { SqlDumper } from 'dbgate-types'; import { Expression, ColumnRefExpression } from './types'; import { dumpSqlSourceRef } from './dumpSqlSource'; @@ -6,7 +6,7 @@ import { dumpSqlSourceRef } from './dumpSqlSource'; export function evaluateExpression(expr: Expression, values) { switch (expr.exprType) { case 'column': - return _.get(values, expr.columnName); + return _get(values, expr.columnName); case 'placeholder': return values.__placeholder;