Well, I still got some problems:

class Domain < Sequel::Model(:public__domains)
  one_to_many :records
end

class Record < Sequel::Model(:public__records)
  many_to_one :domain
end

>> d = Domain.find(:id => 1)
#=> ...
>> d.records
Sequel::DatabaseError: PGError ERROR:  missing FROM-clause entry for
table "public__records"

and the SQL query looks like this:

[INFO] Tue Oct 21 14:51:16 -0300 2008 :: SELECT * FROM
"public"."records" WHERE ("public__records"."domain_id" = 1)

looks like the where clause is not expanding correctly the table
name :-(

PS: sorry if the same post appears twice, apparently google-groups has
some problems keeping sessions alive :-S

regards,
rolando./
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to