We use $n_past-days instead of :n_past_days becasuse he pgdriver bind variable emulation puts single-quotes around the n_past_days integer. …
Show more
We use $n_past-days instead of :n_past_days becasuse he pgdriverbind variable emulation puts single-quotes around the n_past_daysinteger. Postgresql tries to turn '-1' into a date datatypeso now()-'-1' fails but now()- -1 works fine.By Dave Bauer in the process of migrating the openacs.org site.
Show less