Skip to content

ActiveRecord::StatementInvalid in Refinery/calendar/events#index #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
CentroDL opened this issue Aug 7, 2013 · 3 comments
Open

Comments

@CentroDL
Copy link

CentroDL commented Aug 7, 2013

Hey everyone, I just put together a fresh RefineryCMS 2.0.10 app. Rails 3.2.13 Ruby 1.9.3p392, and running Refinerycms-calendar 2.0.4.

The backend works for creating events, but when I try and load the 'Events' Page from the front end I'm getting the following error:

SQLite3::SQLException: near "from": syntax error: SELECT "refinery_calendar_events".* FROM "refinery_calendar_events" WHERE (refinery_calendar_events.from >= '2013-08-07 04:28:26.168918') ORDER BY refinery_calendar_events.from DESC

Extracted source (around line #3):
1: <% content_for :body_content_left do %>
2:


3: <%= render @events %>
4:

5: <% end %>
6:

So far I'm just using sqlite3, I know that the Postgres compatibility fix was merged, and it looks very similar. Any advice?

@parndt
Copy link
Member

parndt commented Aug 7, 2013

It may not have been released, try the github version?

@CentroDL
Copy link
Author

github version gives me the same issue unfortunately

@jvalente
Copy link

@CentroDL, the from column name on refinery_calendar_events table seems to be what is causing this issue since it is a sqlite keyword.

I've replace from by start here and everything worked as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants