Forum: Ruby on Rails ActiveRecord find with :include and :select ignores :select

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Paolo N. (Guest)
on 2007-01-17 17:19
(Received via mailing list)
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
Paolo N. (Guest)
on 2007-01-17 18:24
(Received via mailing list)
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
This topic is locked and can not be replied to.