oops... too soon to claim victory:
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"
The SQL query looks like this:
[INFO] Tue Oct 21 14:26:20 -0300 2008 :: SELECT * FROM
"public"."records" WHERE ("public__records"."domain_id" = 1)
apparently, in the where clause, the __ is not beign translated to a
".", like in everywhere else.
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
-~----------~----~----~----~------~----~------~--~---