On Oct 21, 10:53 am, rolando <[EMAIL PROTECTED]> wrote:
> 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 :-(
That's definitely a bug. I'll see if I can track it down and commit a
fix.
Jeremy
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---