On Oct 21, 4:43 am, rolando <[EMAIL PROTECTED]> wrote: > I'm trying to set a simple model, but apparently the table name is > conflicting with an internal one in postgres: > > class Domain < Sequel::Model(:domains); end > > when asking for the Domain.columns I get this: > > [:domain_catalog, :domain_schema, :domain_name, :data_type, > :character_maximum_length, :character_octet_length, :character_set_catalog, > :character_set_schema, :character_set_name, :collation_catalog, > :collation_schema, :collation_name, :numeric_precision, > :numeric_precision_radix, :numeric_scale, :datetime_precision, > :interval_type, :interval_precision, :domain_default, :udt_catalog, > :udt_schema, :udt_name, :scope_catalog, :scope_schema, :scope_name, > :maximum_cardinality, :dtd_identifier] > > which is clearly not what I want :-) > is there any way to set the namespace for the tables? > thanks!
With 2.6.0, the following should work: # where schema is the schema/namespace of the table class Domain < Sequel::Model(:schema__domains); end This should be a better solution than restricting OIDs, as someone might want to get a description for one of the information schema tables, and we don't want to restrict that. 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 -~----------~----~----~----~------~----~------~--~---
