Browse Source

Fix: Solved equal date filter with timestamp columns.

pull/6017/head
VictorMinemu 1 year ago
parent
commit
cb328f7b52
  1. 2
      packages/nocodb/src/db/conditionV2.ts

2
packages/nocodb/src/db/conditionV2.ts

@ -419,6 +419,8 @@ const parseConditionV2 = async (
].includes(column.uidt)
) {
qb = qb.where(field, val);
} else if (column.ct == 'timestamp') {
qb = qb.whereRaw('DATE(??) = DATE(?)', [field, val]);
} else {
// mysql is case-insensitive for strings, turn to case-sensitive
qb = qb.whereRaw('BINARY ?? = ?', [field, val]);

Loading…
Cancel
Save