Skip to content

Commit 4b98cb7

Browse files
committed
fix: use column name in where
1 parent 7181fae commit 4b98cb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/data/sqlGenerator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ const getFilters = (options: QueryBuilderOptions): string => {
692692
let type = filter.type;
693693
const hintedColumn = filter.hint && getColumnByHint(options, filter.hint);
694694
if (hintedColumn) {
695-
column = hintedColumn.alias || hintedColumn.name;
695+
column = hintedColumn.columnName || hintedColumn.name;
696696
type = hintedColumn.type || type;
697697
}
698698

0 commit comments

Comments
 (0)