Skip to content
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

ActiveRecord::StatementInvalid - PG::Error: ERROR: column "X" does not exist #31

Open
RedaBenh opened this issue Apr 9, 2016 · 1 comment

Comments

@RedaBenh
Copy link

RedaBenh commented Apr 9, 2016

slim_scrooge doesn't work with ruby-1.9 and rails-3.2.19 !

I get this error for every query with includes methods.

ActiveRecord::StatementInvalid - PG::Error: ERROR:  column "X" does not exist

Where X is a number (id in my query)

See an example for a real issue:

ActiveRecord::StatementInvalid - PG::Error: ERROR:  column "16" does not exist
LINE 1: ...n","services"."id" FROM "services" WHERE "id" IN ("16","17",...

My env Env:

$ ruby -v
ruby 1.9.3p551 (2014-11-13 revision 48407) [x86_64-darwin14.0.0]
$ rails -v
Rails 3.2.19
@RedaBenh RedaBenh changed the title slim_scrooge doesn't work with ruby-1.9 and rails-3.2.19 ! ActiveRecord::StatementInvalid - PG::Error: ERROR: column "X" does not exist Apr 9, 2016
@sdsykes
Copy link
Owner

sdsykes commented Apr 9, 2016

I'll merge a patch if you have one, but I'm sorry I don't have the possibility to investigate the problem.

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

2 participants