Re: flexi adaption/casting scheme

From: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
To: Tobias Oberstein <tobias(dot)oberstein(at)gmail(dot)com>
Cc: psycopg(at)postgresql(dot)org
Subject: Re: flexi adaption/casting scheme
Date: 2012-09-22 18:42:27
Message-ID: CA+mi_8Y=-x9guOG5bwGTD0=aTP+tu0PwHqsWwzM9i7HRiup2Lg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

On Sat, Sep 22, 2012 at 7:02 PM, Tobias Oberstein
<tobias(dot)oberstein(at)gmail(dot)com> wrote:
>> Procedures with OUT parameters don't return a specific oid: they
>> return a generic "record" oid (2249).
>
>
> Sorry to bother you once more: is it possible to cast any PG RECORD
> (anything OID 2249) into Python _lists_?

Postgres doesn't tell you the oids of the components, so you cannot
cast them to python types: you can only have them as strings.

-- Daniele

In response to

Responses

Browse psycopg by date

  From Date Subject
Next Message Tobias Oberstein 2012-09-22 18:57:23 Re: flexi adaption/casting scheme
Previous Message Tobias Oberstein 2012-09-22 18:02:00 Re: flexi adaption/casting scheme