note 25078 added to function.pg-copy-from
| From: | carl at rack1 dot php dot net | Date: | Tue, 10 Sep 2002 08:06:52 +0000 |
| Subject: | note 25078 added to function.pg-copy-from | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-36425@lists.php.net to get a copy of this message | ||
Something needs to be said about the format of the array.
Judging by what I've seen, it's pretty much what you get
from loading a tab-separated file with file(). That is, the
lines are linefeed-terminated and there's no need to have
an extra line with "\.". On the other hand, when I try using this
command the connection to the server ends up in some odd
state and is then lost:
PHP Warning: UåSèo() query failed: server closed the connection unexpectedly
I think it might be safer to use the lower-level function
pg_put_line() for now.
--
http://www.php.net/manual/en/function.pg-copy-from.php
http://master.php.net/manage/user-notes.php?action=edit+25078
http://master.php.net/manage/user-notes.php?action=delete+25078
http://master.php.net/manage/user-notes.php?action=reject+25078