Browse Source

chore(nocodb): update spacing

pull/7173/head
DarkPhoenix2704 12 months ago committed by Ramesh Mane
parent
commit
6bb09f35c2
  1. 4
      packages/nocodb/src/db/conditionV2.ts

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

@ -581,8 +581,8 @@ const parseConditionV2 = async (
qb = qb.where(knex.raw('BINARY ?? = ?', [field, val])); qb = qb.where(knex.raw('BINARY ?? = ?', [field, val]));
} }
} else { } else {
if(column.uidt === UITypes.DateTime) { if (column.uidt === UITypes.DateTime) {
if(qb.client.config.client === 'pg') { if (qb.client.config.client === 'pg') {
qb = qb.where(knex.raw('??::date = ?', [field, val])); qb = qb.where(knex.raw('??::date = ?', [field, val]));
} else { } else {
qb = qb.where(knex.raw('DATE(??) = DATE(?)', [field, val])); qb = qb.where(knex.raw('DATE(??) = DATE(?)', [field, val]));

Loading…
Cancel
Save