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

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Paolo N. (Guest)
on 2007-01-17 17:19
(Received via mailing list)

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.


Paolo N. (Guest)
on 2007-01-17 18:24
(Received via mailing list)
I've found a trac ticket open for this

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

This topic is locked and can not be replied to.