Skip site navigation (1) Skip section navigation (2)

Re: JSON type caster

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: JSON type caster
Date: 2012-09-19 23:42:17
Message-ID: CA+mi_8avp59F4K_eb4iZ1cYiDV5aO6Gq-isxS2uAX93rovOOYw@mail.gmail.com (view raw or flat)
Thread:
Lists: psycopg
On Wed, Sep 19, 2012 at 7:07 PM, Tobias Oberstein
<tobias(dot)oberstein(at)gmail(dot)com> wrote:
> I think there is a little issue left:
>
>     def typecast_json(s, cur):
>         return loads(s)
>
> fails if s == None.

Right: fixed, thank you.

-- Daniele


In response to

psycopg by date

Next:From: Daniele VarrazzoDate: 2012-09-20 00:18:50
Subject: Re: Range Type Support
Previous:From: Tobias ObersteinDate: 2012-09-19 18:07:13
Subject: Re: JSON type caster

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group