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