PostgreSQL
 sql >> Database >  >> RDS >> PostgreSQL

Postgres Interval Spring Data Dynamic Parametro non funzionante

Prova passando una stringa?

@Query(value="select * from recalls_t where created_date <=  (now() - interval ?1)", 
       nativeQuery=true)
public List<RecallsT> findActiveRecallsInLastHrs(String interval);

// ... 

findActiveRecallsInLastHrs("1 hour");