ActiveRecord find with :include and :select ignores :select


#1

Hi

I’m using rails 1.1.6 with postgresql 8.1 with c driver on linux I
noticed that when on my ActiveRecord objects I use the :select option
and the :include option together the :select seems to be ignored and
all the fields from all the tables are extracted.
Basicly any query is like SELECT * FROM … exactly like if the
:select option wasn’t there.

The :select option works fine (only the specified fields are extracted
from the database) when I don’t use the :include option.

I’d like to know if someone else had the same issue.

Thanks

Paolo


#2

I’ve found a trac ticket open for this

http://dev.rubyonrails.org/ticket/5371

So I suppose there’s no fix at the moment.

Paolo