note 32732 added to function.pg-lo-write
| From: | nandrews at logictree dot co dot uk | Date: | Thu, 05 Jun 2003 13:17:26 +0000 |
| Subject: | note 32732 added to function.pg-lo-write | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-49790@lists.php.net to get a copy of this message | ||
Using php 4.3.0 and PostgreSQL 7.3.1
I can write a simple script in which pg_lo_write seems to always return 1 and not the number of
bytes written, as evidenced by extracting the data through another means.
Further more, I can make this pg_lo_write fail, or at least fail to write all the data it's
pretty difficult to tell without the number of bytes written being returned, and not return the
false value. In addition to this, the lo resource has been adjusted so that the oid it contains is
0.
Unfortunately, I do not know what exactly the failure mode is, it does seem to be in the ip network
communication side of PostgreSQL, which is odd since the unix domain comms works fine for this.
However, it would have been useful to have the pg_lo_write() function return as advertised, it would
have saved some of the 2 man hours me and the dev. team put into diagnosing this problem.
----
Manual Page -- http://www.php.net/manual/en/function.pg-lo-write.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32732
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32732&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32732&report=yes