Closed ghost closed 4 years ago
@iocohen I'm not sure if you figured this out already, but try using single quotes for your date. By using double quotes the query will interpret as an aliased column.
SELECT * FROM parcare_parking WHERE parking_on = '2018-10-08'
You'll probably need to coerce the string to a timestamp though.
Closing old issue.
Hi there,
Have installed my parking app on heroku. Heroku comes built with postres sql. When i run a simple query like :
i got this error.
The same with --
SELECT * FROM parcare_parking WHERE parking_on = "2018-10-08"
column "2018-10-08" does not exist LINE 1: SELECT * FROM parcare_parking WHERE parking_on = "2018-10-08... ^
What should i do? My app is in production :( thank you!