cvs: phpdoc-pl /reference/pgsql/functions pg-cancel-query.xml
| From: | Leszek Krupinski | Date: | Tue, 02 May 2006 00:01:54 +0000 |
| Subject: | cvs: phpdoc-pl /reference/pgsql/functions pg-cancel-query.xml | ||
| Groups: | php.doc.pl | ||
| Request: | Send a blank email to doc-pl+get-907@lists.php.net to get a copy of this message | ||
leszek Tue May 2 00:01:54 2006 UTC
Modified files:
/phpdoc-pl/reference/pgsql/functions pg-cancel-query.xml
Log:
[adi] update to rev. 1.9
http://cvs.php.net/viewcvs.cgi/phpdoc-pl/reference/pgsql/functions/pg-cancel-query.xml?r1=1.3&r2=1.4&diff_format=u
Index: phpdoc-pl/reference/pgsql/functions/pg-cancel-query.xml
diff -u phpdoc-pl/reference/pgsql/functions/pg-cancel-query.xml:1.3
phpdoc-pl/reference/pgsql/functions/pg-cancel-query.xml:1.4
--- phpdoc-pl/reference/pgsql/functions/pg-cancel-query.xml:1.3 Wed Jun 19 09:03:21 2002
+++ phpdoc-pl/reference/pgsql/functions/pg-cancel-query.xml Tue May 2 00:01:54 2006
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-2"?>
-<!-- EN-Revision: 1.4 Maintainer: jarek Status: ready -->
-<!-- $Revision: 1.3 $-->
+<!-- EN-Revision: 1.9 Maintainer: jarek Status: ready -->
+<!-- $Revision: 1.4 $-->
<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.61 -->
<refentry id='function.pg-cancel-query'>
<refnamediv>
@@ -9,23 +9,90 @@
Przerywa zapytanie asynchroniczne
</refpurpose>
</refnamediv>
- <refsect1>
- <title>Opis</title>
+
+ <refsect1 role="description">
+ &reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>pg_cancel_query</methodname>
-
<methodparam><type>resource</type><parameter>connection</parameter></methodparam>
+
<methodparam><type>resource</type><parameter>po³±czenie</parameter></methodparam>
</methodsynopsis>
<para>
<function>pg_cancel_query</function> przerywa zapytanie asynchroniczne wys³ane
przez
- <function>pg_send_query</function>. Nie mo¿na przerwaæ zapytania uruchomionego
przez
+ <function>pg_send_query</function>,
<function>pg_send_query_params</function>
+ lub <function>pg_send_execute</function>. Nie mo¿na przerwaæ zapytania
uruchomionego przez
<function>pg_query</function>.
</para>
- <para>
- Zobacz te¿ <function>pg_send_query</function>
- i <function>pg_connection_busy</function>
- </para>
</refsect1>
- </refentry>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+ <variablelist>
+ <varlistentry>
+ <term><parameter>po³±czenie</parameter></term>
+ <listitem>
+ <para>
+ Zasób, po³±czenie do bazy PostgreSQL.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ &return.success;
+ </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title><function>pg_cancel_query</function> przyk³ad</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+ $dbconn = pg_connect("dbname=publisher") or die("Nie mo¿na po³±czyæ
siê");
+
+ if (!pg_connection_busy($dbconn)) {
+ pg_send_query($dbconn, "select * from authors; select count(*) from authors;");
+ }
+
+ $res1 = pg_get_result($dbconn);
+ echo "Pierwsze wywo³anie pg_get_result(): $res1\n";
+ $rows1 = pg_num_rows($res1);
+ echo "$res1 ma $rows1 rekordów\n\n";
+
+ // Anuluj obecnie dzia³aj±ce zapytanie. Bêdzie to drugie zapytanie, je¶li siê
+ // jeszcze wykonuje.
+ pg_cancel_query($dbconn);
+?>
+]]>
+ </programlisting>
+ &example.outputs;
+ <screen>
+<![CDATA[
+Pierwsze wywo³anie pg_get_result(): Resource id #3
+Resource id #3 ma 3 rekordów
+]]>
+ </screen>
+ </example>
+ </para>
+ </refsect1>
+
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+ <member><function>pg_send_query</function></member>
+ <member><function>pg_connection_busy</function></member>
+ </simplelist>
+ </para>
+ </refsect1>
+</refentry>
<!-- Keep this comment at the end of the file
Local variables: