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

Re: А lo_open вообще рабо

From: "Andrey N(dot) Oktyabrski" <ano(at)antora(dot)ru>
To: "Andrey N(dot) Oktyabrski" <ano(at)antora(dot)ru>
Cc: pgsql-ru-general(at)postgresql(dot)org
Subject: Re: А lo_open вообще рабо
Date: 2006-07-11 08:54:11
Message-ID: 44B36733.9050007@antora.ru (view raw or flat)
Thread:
Lists: pgsql-ru-general
Andrey N. Oktyabrski wrote:
>   fd = DatumGetInt32(DirectFunctionCall2(lo_open, oid, 
> Int32GetDatum(INV_READ)));
>   if (!fd) PG_RETURN_NULL();
Отставить панику, работает :-) Оказывается ноль - валидный дескриптор, а 
я тормоз. Надо так:
if (fd < 0) PG_RETURN_NULL();

In response to

pgsql-ru-general by date

Next:From: Ivan SurkovDate: 2006-07-11 16:27:32
Subject: snowball & win 1251
Previous:From: Andrey N. OktyabrskiDate: 2006-07-11 08:07:13
Subject: А lo_open вообще работает?

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