On May 4, 6:16 am, Clive Crous <[email protected]> wrote:
> Hi,
>
> I have a table named `domains` and when I create a `Domain < Sequel::Model`
> then Domain.columns returns a whole lot more than it should. It would seem
> that Sequel's postgres adapter is retrieving postgres::domain information as
> well as postgres::table::domain
>
> can anyone else with postgres verify this?
>
> examples of extranious "column names" that seem to get included:
>
> "
> character_set_catalog
> character_set_schema
> ...
> udt_catalog
> udt_name
> ...
> maximum_cardinality
> dtd_identifier
> ...
> " etc

You should be able to specify the full table name with schema to work
around this:

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

At some point we should think about Sequel querying the schema search
path in the PostgreSQL adapter and using that to restrict information
by default.

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to