Browse Source

fix: datetime comparison issue

pull/6507/head
Pranav C 1 year ago
parent
commit
e9e83ff594
  1. 2
      packages/nocodb/src/db/conditionV2.ts

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

@ -460,7 +460,7 @@ const parseConditionV2 = async (
].includes(column.uidt)
) {
qb = qb.where(field, val);
} else if (column.ct === 'timestamp') {
} else if (column.ct === 'timestamp' || column.ct === 'date' || column.ct === 'datetime') {
qb = qb.where(knex.raw('DATE(??) = DATE(?)', [field, val]));
} else {
// mysql is case-insensitive for strings, turn to case-sensitive

Loading…
Cancel
Save