I have this native query that won't work in my DAO
@Query(
nativeQuery = true,
value = "DELETE FROM products_in_carts WHERE cart_id =?1 AND product_name = ?2 LIMIT= 1"
)
void removeProduct(long id, String productName);
Which returns: org.postgresql.util.PSQLException: ERROR: syntax error at or near "LIMIT"
I tried with OFFSET as suggested in some other questions but won't work either