Fixed a small mistake.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@24418 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jouni Ahto 2000-05-17 18:23:52 +00:00
parent 6b447780b6
commit e9cc3ae94c

View file

@ -71,24 +71,23 @@
To use the large object (lo) interface, it is necessary to enclose
it within a transaction block. A transaction block starts with a
<command>begin</command> and if the transaction was valid ends
with <command>commit</command> and <command>end</command>. If the
with <command>commit</command> or <command>end</command>. If the
transaction fails the transaction should be closed with
<command>abort</command> and <command>rollback</command>.
<command>rollback</command> or <command>abort</command>.
<example>
<title>Using Large Objects</title>
<programlisting role="php">
&lt;?php
$database = pg_Connect ("", "", "", "", "jacarta");
pg_exec ($database, "begin");
$database = pg_Connect ("", "", "", "", "jacarta");
pg_exec ($database, "begin");
$oid = pg_locreate ($database);
echo ("$oid\n");
$handle = pg_loopen ($database, $oid, "w");
echo ("$handle\n");
pg_lowrite ($handle, "gaga");
pg_loclose ($handle);
pg_exec ($database, "commit")
pg_exec ($database, "end")
pg_exec ($database, "commit");
?>
</programlisting>
</example>