This commit is contained in:
Jan Prochazka 2022-12-18 18:29:21 +01:00
parent 245ec58505
commit b6afd24172

View File

@ -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;