Re: flexi adaption/casting scheme

Поиск
Список
Период
Сортировка
От Daniele Varrazzo
Тема Re: flexi adaption/casting scheme
Дата
Msg-id CA+mi_8YQcsqYpMY7YP1k06uDquuaRysPWt=dq-wpBHcMXsWu7g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: flexi adaption/casting scheme  (Tobias Oberstein <tobias.oberstein@gmail.com>)
Ответы Re: flexi adaption/casting scheme  (Tobias Oberstein <tobias.oberstein@gmail.com>)
Список psycopg
On Sat, Sep 22, 2012 at 2:25 PM, Tobias Oberstein
<tobias.oberstein@gmail.com> wrote:

> the _from_db class method on CompositeCaster takes a name argument and
> parsed that into "schema" and "typename".
>
> It uses both to retrieve Oids etc, but then only forwards "typename", and
> not "schema" to the CompositeCaster constructor.
>
> If a have 2 composite types defined "public.t_foo" and "bar.t_foo", and
> register both, one will be overwritten ..

Uhm... why overwritten? The two CompositeCaster will register two
different typecasters on two different oids. The name is only used as
name namedtuple name. What would the schema be used for?

-- Daniele


В списке psycopg по дате отправления:

Предыдущее
От: Tobias Oberstein
Дата:
Сообщение: Re: flexi adaption/casting scheme
Следующее
От: Tobias Oberstein
Дата:
Сообщение: Re: flexi adaption/casting scheme