Re: PL/Python

From: Tom Jenkins <tjenkins(at)devis(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PL/Python
Date: 2003-01-21 18:25:52
Message-ID: 200301211325.52289.tjenkins@devis.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tuesday 21 January 2003 12:49 pm, Tom Lane wrote:
> Tom Jenkins <tjenkins(at)devis(dot)com> writes:
> > I believe the logic is correct (if the python object is None then send
> > to the typfunc a NULL) but I don't know how to code it correctly.
>
> You shouldn't call the typfunc at all if you want a NULL --- just set
> the null flag for that datum slot.
>
> regards, tom lane

please pardon me if this is really obvious, but i can't seem to find a null
flag in the structures i have in that function. I don't get how to set the
null flag for the datum slot. I'm still learning how to work with the
backend code.

any help is appreciated,

Tom

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message will trillich 2003-01-21 18:28:59 Re: loading delimited files
Previous Message William N. Zanatta 2003-01-21 18:18:11 Re: Help on query plan.