RE: [PHP4BETA] PostgreSQL - Bug ?
| From: | Jackson, DeJuan | Date: | Tue, 14 Sep 1999 15:27:18 +0000 |
| Subject: | RE: [PHP4BETA] PostgreSQL - Bug ? | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-4433@lists.php.net to get a copy of this message | ||
Try it in a transaction... If you are using 6.5.* then a transaction is
required. If you are using 6.4.* then a transaction is not required but the
behavior is undefined. Prior to 6.4.* your guess is as good as mine. This
all is specific to large objects.
DEJ
> -----Original Message-----
> From: Jarek Sygitowicz [SMTP:gwido@jaro.paiz.gov.pl]
> Sent: Tuesday, September 14, 1999 8:48 AM
> To: php4beta@lists.php.net
> Subject: Re: [PHP4BETA] PostgreSQL - Bug ?
>
> Hello!
> I think i'v found a bug in postgresql module for php4.
> following code:
>
> $objid = pg_locreate($fd);
> $f = pg_loopen($fd,$objid,"w");
> pg_lowrite($f, $str);
> return $objid;
>
> is ok.
> but
>
> $file = pg_loopen($fd,$oid,"r");
> pg_loreadall($file);
>
> couses the following warning message:
>
> Warning: Unable to open PostgresSQL large object in include/blob.inc
> on line 66
> Warning: 0 is not a PostgresSQL large object index in include/blob.inc
> on line 67
>
> right now i'm useing a dirty hack with SQL select, but i think it's
> really important...or maybe I'm doing something wrong?
> GWIDo
> --
> [ Jarosław Sygitowicz ] [ http://linux.news.pl ] [
> gwido@paiz.gov.pl ]
> [ fast: 501020736@sms.e-biznes.pl ] [ http://video4.linux.pl
> ] [ --- ]
> [ If you want something to be done good... do it yourself! ] [ ----- ]
> [ Home page: http://golem.melog.com.pl/~gwido ] [
> ------------------ ]
>
> --
> PHP 4 Beta