Что эквивалентно std :: is_const для ссылок на const?

Поскольку вы находитесь в Postgres, я полностью изменил дату ():

return sessionFactory.getCurrentSession().
        createQuery("FROM Weather WHERE city_id = :id AND date " +
                "BETWEEN current_date AND (current_date + (integer :days - 1))").
                setInteger("id", city_id).setString("days", days).list();

См. http://www.postgresql.org/docs/8.2/static/functions -datetime.html

20
задан Praetorian 12 June 2015 в 15:47
поделиться