i'm using postgres and i want tried date_diff, but i get this error
Warning: pg_query(): Query failed: ERROR: operator does not exist: boolean = integer LINE 1
and then this is my query
select id_mitra
,company_name
from ref_mitra
where reject=0 and DATE_DIFF(now(),date_status) > 3 and active='N'
what wrong in my query?
rejectis a boolean.where reject = false. There is also nodate_difffunction in Postgres.reject=0::booleanorreject=false2014-09-26