mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
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:
parent
6b447780b6
commit
e9cc3ae94c
1 changed files with 5 additions and 6 deletions
|
@ -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">
|
||||
<?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>
|
||||
|
|
Loading…
Reference in a new issue