cvs: phpdoc-pl /reference/pgsql/functions pg-get-result.xml pg-host.xml pg-last-error.xml pg-lo-close.xml pg-lo-export.xml
| From: | Adam Major | Date: | Tue, 03 Jun 2008 08:32:18 +0000 |
| Subject: | cvs: phpdoc-pl /reference/pgsql/functions pg-get-result.xml pg-host.xml pg-last-error.xml pg-lo-close.xml pg-lo-export.xml | ||
| Groups: | php.doc.pl | ||
| Request: | Send a blank email to doc-pl+get-1386@lists.php.net to get a copy of this message | ||
adi Tue Jun 3 08:32:18 2008 UTC
Modified files:
/phpdoc-pl/reference/pgsql/functions pg-get-result.xml pg-host.xml
pg-last-error.xml
pg-lo-close.xml
pg-lo-export.xml
Log:
Update to EN
http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/pgsql/functions/pg-get-result.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-pl/reference/pgsql/functions/pg-get-result.xml diff -u phpdoc-pl/reference/pgsql/functions/pg-get-result.xml:1.4 phpdoc-pl/reference/pgsql/functions/pg-get-result.xml:1.5 --- phpdoc-pl/reference/pgsql/functions/pg-get-result.xml:1.4 Sat Jun 23 13:29:34 2007 +++ phpdoc-pl/reference/pgsql/functions/pg-get-result.xml Tue Jun 3 08:32:17 2008 @@ -1,48 +1,127 @@ -<?xml version="1.0" encoding="iso-8859-2"?> -<!-- EN-Revision: 1.2 Maintainer: jarek Status: ready --> -<!-- $Revision: 1.4 $--> -<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.58 --> - <refentry xml:id='function.pg-get-result' xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>pg_get_result</refname> - <refpurpose> - Zwraca wynik zapytania asynchroniczego - </refpurpose> - </refnamediv> - <refsect1> - <title>Opis</title> - <methodsynopsis> - <type>resource</type><methodname>pg_get_result</methodname> - <methodparam choice="opt"><type>resource</type><parameter>connection</parameter></methodparam> - </methodsynopsis> - <para> - <function>pg_get_result</function> zwraca wynik zapytania asynchronicznego - uruchomionego przez <function>pg_send_query</function>. - <function>pg_send_query</function> mo¿e wys³aæ wiele zapytañ do serwera, - i <function>pg_get_result</function> jest u¿ywana do pobierania ich wyników. - Zwraca identyfikator wyniku. Je¶li nie ma wiêcej dostêpnych wyników, zwraca - &false;. - </para> - </refsect1> - </refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> +<?xml version="1.0" encoding="iso-8859-2"?> +<!-- EN-Revision: 1.7 Maintainer: garbus Status: ready --> +<!-- $Revision: 1.5 $--> +<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.58 --> +<!-- CREDITS: jarek --> +<refentry xml:id='function.pg-get-result' xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>pg_get_result</refname> + <refpurpose> + Pobiera wynik zapytania asynchroniczego + </refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>resource</type><methodname>pg_get_result</methodname> + <methodparam choice="opt"><type>resource</type><parameter>polaczenie</parameter></methodparam> + </methodsynopsis> + <para> + <function>pg_get_result</function> zwraca wynik + zapytania asynchronicznego uruchomionego przez + <function>pg_send_query</function>, <function>pg_send_query_params</function> lub + <function>pg_send_execute</function>. + </para> + <para><function>pg_send_query</function> oraz + inne funkcje zapytañ asynchronicznych + mo¿e wysy³aæ wiele zapytañ do serwera PostgreSQL, natomiast + <function>pg_get_result</function> jest u¿ywana do pobierania wyników ka¿dego zapytania + po kolei. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>polaczenie</parameter></term> + <listitem> + <para> + Identyfikator po³±czenia z baz± PostgreSQL. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Identyfikator wyniku (ang. <type>resource</type>), lub &false; gdy brak wiêcej dostêpnych wyników. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>pg_get_result</function> - przyk³ad</title> + <programlisting role="php"> +<![CDATA[ +<?php + $polaczenie = pg_connect("dbname=wydawca") or die("Nie mo¿na siê po³±czyæ"); + + if (!pg_connection_busy($polaczenie)) { + pg_send_query($polaczenie, "select * from autorzy; select count(*) from autorzy;"); + } + + $wyn1 = pg_get_result($polaczenie); + echo "Pierwsze wywo³anie pg_get_result(): $wyn1\n"; + $wiersze1 = pg_num_rows($wyn1); + echo "$wyn1 ma $wiersze1 rekordy(ów)\n\n"; + + $wyn2 = pg_get_result($polaczenie); + echo "Drugie wywo³anie pg_get_result(): $wyn2\n"; + $wiersze2 = pg_num_rows($wyn2); + echo "$wyn2 ma $wiersze2 rekordy(ów)\n"; +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +Pierwsze wywo³anie pg_get_result(): Resource id #3 +Resource id #3 ma 3 rekordy(ów) + +Drugie wywo³anie pg_get_result(): Resource id #4 +Resource id #4 ma 1 rekordy(ów) +]]> + </screen> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>pg_send_query</function></member> + </simplelist> + </para> + </refsect1> +</refentry> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/pgsql/functions/pg-host.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-pl/reference/pgsql/functions/pg-host.xml diff -u phpdoc-pl/reference/pgsql/functions/pg-host.xml:1.4 phpdoc-pl/reference/pgsql/functions/pg-host.xml:1.5 --- phpdoc-pl/reference/pgsql/functions/pg-host.xml:1.4 Sat Jun 23 13:29:34 2007 +++ phpdoc-pl/reference/pgsql/functions/pg-host.xml Tue Jun 3 08:32:17 2008 @@ -1,48 +1,108 @@ -<?xml version="1.0" encoding="iso-8859-2"?> -<!-- EN-Revision: 1.2 Maintainer: jarek Status: ready --> -<!-- $Revision: 1.4 $--> -<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> - <refentry xml:id="function.pg-host" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>pg_host</refname> - <refpurpose> - Zwraca nazwê komputera zwi±zan± z identyfikatorem po³±czenia - </refpurpose> - </refnamediv> - <refsect1> - <title>Opis</title> - <methodsynopsis> - <type>string</type><methodname>pg_host</methodname> - <methodparam><type>resource</type><parameter>connection</parameter></methodparam> - </methodsynopsis> - <para> - <function>pg_host</function> zwraca nazwê komputera z któr± jest - zwi±zany wskazany identyfikator po³±czenia <parameter>connection</parameter>. - </para> - <para> - Zobacz tak¿e <function>pg_connect</function> i - <function>pg_pconnect</function>. - </para> - </refsect1> - </refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> +<?xml version="1.0" encoding="iso-8859-2"?> +<!-- EN-Revision: 1.7 Maintainer: garbus Status: ready --> +<!-- $Revision: 1.5 $--> +<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> +<!-- CREDITS: jarek --> +<refentry xml:id="function.pg-host" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>pg_host</refname> + <refpurpose> + Zwraca nazwê komputera zwi±zanego z po³±czeniem + </refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>pg_host</methodname> + <methodparam choice="opt"><type>resource</type><parameter>polaczenie</parameter></methodparam> + </methodsynopsis> + <para> + <function>pg_host</function> zwraca nazwê komputera, + dla danego identyfikatora <parameter>polaczenie</parameter>, + z którym po³±czony jest PostgreSQL. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>polaczenie</parameter></term> + <listitem> + <para> + Identyfikator po³±czenia do bazy PostgreSQL. Gdy parametr + <parameter>polaczenie</parameter> nie zosta³ podany, domy¶lne po³±czenie + jest u¿ywane. Domy¶lnym po³±czeniem jest ostatnie po³±czenie stworzone przez + <function>pg_connect</function> lub <function>pg_pconnect</function>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + £añcuch (ang. <type>string</type>) zawieraj±cy nazwê komputera, do którego + <parameter>polaczenie</parameter> jest nawi±zane, lub &false; w razie b³êdu. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>pg_host</function> - przyk³ad</title> + <programlisting role="php"> +<![CDATA[ +<?php +$pgsql_polacz = pg_connect("dbname=marek host=localhost"); + +if ($pgsql_polacz) { + print "Nawi±zano po³±czenie do: " . pg_host($pgsql_polacz) . "<br/>\n"; +} else { + print pg_last_error($pgsql_polacz); + exit; +} +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>pg_connect</function></member> + <member><function>pg_pconnect</function></member> + </simplelist> + </para> + </refsect1> +</refentry> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/pgsql/functions/pg-last-error.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-pl/reference/pgsql/functions/pg-last-error.xml diff -u phpdoc-pl/reference/pgsql/functions/pg-last-error.xml:1.4 phpdoc-pl/reference/pgsql/functions/pg-last-error.xml:1.5 --- phpdoc-pl/reference/pgsql/functions/pg-last-error.xml:1.4 Sat Jun 23 13:29:34 2007 +++ phpdoc-pl/reference/pgsql/functions/pg-last-error.xml Tue Jun 3 08:32:17 2008 @@ -1,60 +1,118 @@ -<?xml version="1.0" encoding="iso-8859-2"?> -<!-- EN-Revision: 1.2 Maintainer: jarek Status: ready --> -<!-- $Revision: 1.4 $--> -<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> - <refentry xml:id="function.pg-last-error" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>pg_last_error</refname> - <refpurpose>Zwraca ostatni komunikat b³êdu zwi±zany z po³±czeniem</refpurpose> - </refnamediv> - <refsect1> - <title>Opis</title> - <methodsynopsis> - <type>string</type><methodname>pg_last_error</methodname> - <methodparam><type>resource</type><parameter>connection</parameter></methodparam> - </methodsynopsis> - <para> - <function>pg_last_error</function> Zwraca ostatni komunikat b³êdu - zwi±zany z po³±czeniem <parameter>connection</parameter>. - </para> - <para> - Komunikat b³êdu mo¿e byæ zamazany przez wewnêtrzne wywo³ania - funkcji PostgreSQL(libpq). Funkcja mo¿e nie zwróciæ w³a¶ciwego - komunikatu, je¶li w module PostgreSQL wyst±pi³o wiele b³êdów. - </para> - <para> - Stosuj <function>pg_result_error</function>, - <function>pg_result_status</function> i - <function>pg_connection_status</function> dla lepszej obs³ugi b³êdów. - </para> - <note> - <para> - Ta funkcja by³a poprzednio nazwana <literal>pg_errormessage()</literal>. - </para> - </note> - <para> - Zobacz tak¿e <function>pg_result_error</function>. - </para> - </refsect1> - </refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> +<?xml version="1.0" encoding="iso-8859-2"?> +<!-- EN-Revision: 1.10 Maintainer: garbus Status: ready --> +<!-- $Revision: 1.5 $--> +<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> +<!-- CREDITS: jarek --> +<refentry xml:id="function.pg-last-error" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>pg_last_error</refname> + <refpurpose>Zwraca ³añcuch ostatniego komunikatu b³êdu dla po³±czenia</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>pg_last_error</methodname> + <methodparam choice="opt"><type>resource</type><parameter>polaczenie</parameter></methodparam> + </methodsynopsis> + <para> + <function>pg_last_error</function> zwraca ostatni komunikat b³êdu + dla po³±czenia danego parametrem <parameter>polaczenie</parameter>. + </para> + <para> + Komunikaty b³êdów mog± byæ zamazane przez wewnêtrzne wywo³ania + funkcji PostgreSQL(libpq). Funkcja mo¿e nie zwróciæ w³a¶ciwego + komunikatu, je¶li wewn±trz modu³u PostgreSQL wyst±pi³o wiele b³êdów. + </para> + <para> + Stosuj <function>pg_result_error</function>, <function>pg_result_error_field</function>, + <function>pg_result_status</function> i + <function>pg_connection_status</function> dla lepszej obs³ugi b³êdów. + </para> + <note> + <para> + Ta funkcja by³a poprzednio nazwana <function>pg_errormessage</function>. + </para> + </note> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>polaczenie</parameter></term> + <listitem> + <para> + Identyfikator po³±czenia do bazy danych PostgreSQL. Gdy + <parameter>polaczenie</parameter> nie zosta³ podany, domy¶lne po³±czenie + jest u¿yte. Domy¶lnym po³±czeniem jest ostatnie, stworzone przez + <function>pg_connect</function> lub <function>pg_pconnect</function>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + £añcuch (ang. <type>string</type>) zawieraj±cy ostatni komunikat b³êdu dla + danego poprzez parametr <parameter>polaczenie</parameter> po³±czenia, lub &false; w razie niepowodzenia. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>pg_last_error</function> - przyk³ad</title> + <programlisting role="php"> +<![CDATA[ +<?php + $polaczenie = pg_connect("dbname=wydawca") or die("Nie mo¿na siê po³±czyæ"); + + // Zapytanie, które nie zosta³o wykonane + $wyn = pg_query($polaczenie, "select * from nie_istniejaca_tabela"); + + echo pg_last_error($polaczenie); +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>pg_result_error</function></member> + <member><function>pg_result_error_field</function></member> + </simplelist> + </para> + </refsect1> +</refentry> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/pgsql/functions/pg-lo-close.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-pl/reference/pgsql/functions/pg-lo-close.xml diff -u phpdoc-pl/reference/pgsql/functions/pg-lo-close.xml:1.4 phpdoc-pl/reference/pgsql/functions/pg-lo-close.xml:1.5 --- phpdoc-pl/reference/pgsql/functions/pg-lo-close.xml:1.4 Sat Jun 23 13:29:34 2007 +++ phpdoc-pl/reference/pgsql/functions/pg-lo-close.xml Tue Jun 3 08:32:17 2008 @@ -1,57 +1,113 @@ -<?xml version="1.0" encoding="iso-8859-2"?> -<!-- EN-Revision: 1.2 Maintainer: jarek Status: ready --> -<!-- $Revision: 1.4 $--> -<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> - <refentry xml:id="function.pg-lo-close" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>pg_lo_close</refname> - <refpurpose>Zamyka wielki obiekt (Large Object - LO)</refpurpose> - </refnamediv> - <refsect1> - <title>Opis</title> - <methodsynopsis> - <type>bool</type><methodname>pg_lo_close</methodname> - <methodparam><type>resource</type><parameter>large_object</parameter></methodparam> - </methodsynopsis> - <para> - <function>pg_lo_close</function> zamyka wielki obiekt(Large Object). - <parameter>large_object</parameter> jest identyfikatorem wielkiego obiektu (LO) - z wywo³ania <function>pg_lo_open</function>. - </para> - <para> - U¿ycie interfejsu wielkich obiektów (LO) wymaga zamkniêcia wszystkich operacji - z nim zwi±zanych wewn±trz transakcji. - </para> - <note> - <para> - Ta funkcja by³a poprzednio nazwana <literal>pg_loclose()</literal>. - </para> - </note> - <para> - Zobacz tak¿e <function>pg_lo_open</function>, - <function>pg_lo_create</function> i - <function>pg_lo_import</function>. - </para> - </refsect1> - </refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> +<?xml version="1.0" encoding="iso-8859-2"?> +<!-- EN-Revision: 1.7 Maintainer: garbus Status: ready --> +<!-- $Revision: 1.5 $--> +<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> +<!-- CREDITS: jarek --> +<refentry xml:id="function.pg-lo-close" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>pg_lo_close</refname> + <refpurpose>Zamyka wielki obiekt (LO)</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>pg_lo_close</methodname> + <methodparam><type>resource</type><parameter>uchwyt</parameter></methodparam> + </methodsynopsis> + <para> + <function>pg_lo_close</function> zamyka wielki obiekt + (z ang. Large Object - LO). <parameter>uchwyt</parameter> jest identyfikatorem + wielkiego obiektu (LO) wywo³anego funkcj± <function>pg_lo_open</function>. + </para> + <para> + U¿ycie interfejsu wielkich obiektów (LO) wymaga zamkniêcia wszystkich operacji + z nim zwi±zanych wewn±trz transakcji. + </para> + <note> + <para> + Ta funkcja by³a poprzednio nazwana <function>pg_loclose</function>. + </para> + </note> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>uchwyt</parameter></term> + <listitem> + <para> + Identyfikator wielkiego obiektu (LO) PostgreSQL-a, zwrócony przez <function>pg_lo_open</function>. + </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_lo_close</function> - przyk³ad</title> + <programlisting role="php"> +<![CDATA[ +<?php + $baza_danych = pg_connect("dbname=jacarta"); + pg_query($baza_danych, "begin"); + $oid = pg_lo_create($baza_danych); + echo "$oid\n"; + $uchwyt = pg_lo_open($baza_danych, $oid, "w"); + echo "$uchwyt\n"; + pg_lo_write($uchwyt, "large object data"); + pg_lo_close($uchwyt); + pg_query($baza_danych, "commit"); +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>pg_lo_open</function></member> + <member><function>pg_lo_create</function></member> + <member><function>pg_lo_import</function></member> + </simplelist> + </para> + </refsect1> +</refentry> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/pgsql/functions/pg-lo-export.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-pl/reference/pgsql/functions/pg-lo-export.xml diff -u phpdoc-pl/reference/pgsql/functions/pg-lo-export.xml:1.4 phpdoc-pl/reference/pgsql/functions/pg-lo-export.xml:1.5 --- phpdoc-pl/reference/pgsql/functions/pg-lo-export.xml:1.4 Sat Jun 23 13:29:34 2007 +++ phpdoc-pl/reference/pgsql/functions/pg-lo-export.xml Tue Jun 3 08:32:17 2008 @@ -1,57 +1,137 @@ -<?xml version="1.0" encoding="iso-8859-2"?> -<!-- EN-Revision: 1.2 Maintainer: jarek Status: ready --> -<!-- $Revision: 1.4 $--> -<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.6 --> - <refentry xml:id="function.pg-lo-export" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>pg_lo_export</refname> - <refpurpose>Eksportuje wielki obiekt (Large Object - LO) do pliku</refpurpose> - </refnamediv> - <refsect1> - <title>Opis</title> - <methodsynopsis> - <type>bool</type><methodname>pg_lo_export</methodname> - <methodparam><type>int</type><parameter>oid</parameter></methodparam> - <methodparam><type>string</type><parameter>pathname</parameter></methodparam> - <methodparam choice="opt"><type>resource</type><parameter>connection</parameter></methodparam> - </methodsynopsis> - <para> - Parametr <parameter>oid</parameter> wskazuje obiektu (LO) który ma byæ eksportowany, - <parameter>pathname</parameter> wskazuje ¶cie¿kê do pliku do którego obiekt ma byæ zapisany. - Funkcja zwraca &false; je¶li wyst±pi b³±d, &true; w przeciwnym razie. - </para> - <para> - U¿ycie interfejsu wielkich obiektów (LO) wymaga zamkniêcia wszystkich operacji - z nim zwi±zanych wewn±trz transakcji. - </para> - <note> - <para> - Ta funkcja by³a poprzednio nazwana <literal>pg_loexport()</literal>. - </para> - </note> - <para> - Zobacz tak¿e <function>pg_lo_import</function>. - </para> - </refsect1> - </refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> +<?xml version="1.0" encoding="iso-8859-2"?> +<!-- EN-Revision: 1.9 Maintainer: garbus Status: ready --> +<!-- $Revision: 1.5 $--> +<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.6 --> +<!-- CREDITS: jarek --> +<refentry xml:id="function.pg-lo-export" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>pg_lo_export</refname> + <refpurpose>Eksportuje wielki obiekt (Large Object - LO) do pliku</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>pg_lo_export</methodname> + <methodparam><type>resource</type><parameter>polaczenie</parameter></methodparam> + <methodparam><type>int</type><parameter>oid</parameter></methodparam> + <methodparam><type>string</type><parameter>sciezka</parameter></methodparam> + </methodsynopsis> + <methodsynopsis> + <type>bool</type><methodname>pg_lo_export</methodname> + <methodparam><type>int</type><parameter>oid</parameter></methodparam> + <methodparam><type>string</type><parameter>sciezka</parameter></methodparam> + </methodsynopsis> + <para> + <function>pg_lo_export</function> pobiera wielki obiekt w + bazie PostgreSQL i zapisuje jego zawarto¶æ do lokalnego systemu + plików. + </para> + <para> + U¿ycie interfejsu wielkich obiektów (LO) wymaga zamkniêcia wszystkich operacji + z nim zwi±zanych wewn±trz transakcji. + </para> + <note> + <para> + Ta funkcja by³a poprzednio nazwana <function>pg_loexport</function>. + </para> + </note> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>polaczenie</parameter></term> + <listitem> + <para> + Identyfikator po³±czenia do bazy PostgreSQL. Gdy + <parameter>polaczenie</parameter> nie zosta³o podane, domy¶lne po³±czenie + zostaje u¿yte. Domy¶lnym po³±czeniem jest ostatnie stworzone przez + <function>pg_connect</function> lub <function>pg_pconnect</function>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>oid</parameter></term> + <listitem> + <para> + <varname>OID</varname> wielkiego obiektu w bazie danych. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>sciezka</parameter></term> + <listitem> + <para> + Pe³na ¶cie¿ka i nazwa pliku, do którego zostanie zapisana + zawarto¶æ wielkiego obiektu w systemie plików klienta. + </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_lo_export</function> - przyk³ad</title> + <programlisting role="php"> +<![CDATA[ +<?php + $baza_danych = pg_connect("dbname=jacarta"); + pg_query($baza_danych, "begin"); + $oid = pg_lo_create($baza_danych); + $uchwyt = pg_lo_open($baza_danych, $oid, "w"); + pg_lo_write($uchwyt, "large object data"); + pg_lo_close($uchwyt); + pg_lo_export($baza_danych, $oid, '/tmp/lob.dat'); + pg_query($baza_danych, "commit"); +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>pg_lo_import</function></member> + </simplelist> + </para> + </refsect1> +</refentry> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> +
http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/pgsql/functions/pg-get-result.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-pl/reference/pgsql/functions/pg-get-result.xml diff -u phpdoc-pl/reference/pgsql/functions/pg-get-result.xml:1.4 phpdoc-pl/reference/pgsql/functions/pg-get-result.xml:1.5 --- phpdoc-pl/reference/pgsql/functions/pg-get-result.xml:1.4 Sat Jun 23 13:29:34 2007 +++ phpdoc-pl/reference/pgsql/functions/pg-get-result.xml Tue Jun 3 08:32:17 2008 @@ -1,48 +1,127 @@ -<?xml version="1.0" encoding="iso-8859-2"?> -<!-- EN-Revision: 1.2 Maintainer: jarek Status: ready --> -<!-- $Revision: 1.4 $--> -<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.58 --> - <refentry xml:id='function.pg-get-result' xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>pg_get_result</refname> - <refpurpose> - Zwraca wynik zapytania asynchroniczego - </refpurpose> - </refnamediv> - <refsect1> - <title>Opis</title> - <methodsynopsis> - <type>resource</type><methodname>pg_get_result</methodname> - <methodparam choice="opt"><type>resource</type><parameter>connection</parameter></methodparam> - </methodsynopsis> - <para> - <function>pg_get_result</function> zwraca wynik zapytania asynchronicznego - uruchomionego przez <function>pg_send_query</function>. - <function>pg_send_query</function> mo¿e wys³aæ wiele zapytañ do serwera, - i <function>pg_get_result</function> jest u¿ywana do pobierania ich wyników. - Zwraca identyfikator wyniku. Je¶li nie ma wiêcej dostêpnych wyników, zwraca - &false;. - </para> - </refsect1> - </refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> +<?xml version="1.0" encoding="iso-8859-2"?> +<!-- EN-Revision: 1.7 Maintainer: garbus Status: ready --> +<!-- $Revision: 1.5 $--> +<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.58 --> +<!-- CREDITS: jarek --> +<refentry xml:id='function.pg-get-result' xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>pg_get_result</refname> + <refpurpose> + Pobiera wynik zapytania asynchroniczego + </refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>resource</type><methodname>pg_get_result</methodname> + <methodparam choice="opt"><type>resource</type><parameter>polaczenie</parameter></methodparam> + </methodsynopsis> + <para> + <function>pg_get_result</function> zwraca wynik + zapytania asynchronicznego uruchomionego przez + <function>pg_send_query</function>, <function>pg_send_query_params</function> lub + <function>pg_send_execute</function>. + </para> + <para><function>pg_send_query</function> oraz + inne funkcje zapytañ asynchronicznych + mo¿e wysy³aæ wiele zapytañ do serwera PostgreSQL, natomiast + <function>pg_get_result</function> jest u¿ywana do pobierania wyników ka¿dego zapytania + po kolei. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>polaczenie</parameter></term> + <listitem> + <para> + Identyfikator po³±czenia z baz± PostgreSQL. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Identyfikator wyniku (ang. <type>resource</type>), lub &false; gdy brak wiêcej dostêpnych wyników. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>pg_get_result</function> - przyk³ad</title> + <programlisting role="php"> +<![CDATA[ +<?php + $polaczenie = pg_connect("dbname=wydawca") or die("Nie mo¿na siê po³±czyæ"); + + if (!pg_connection_busy($polaczenie)) { + pg_send_query($polaczenie, "select * from autorzy; select count(*) from autorzy;"); + } + + $wyn1 = pg_get_result($polaczenie); + echo "Pierwsze wywo³anie pg_get_result(): $wyn1\n"; + $wiersze1 = pg_num_rows($wyn1); + echo "$wyn1 ma $wiersze1 rekordy(ów)\n\n"; + + $wyn2 = pg_get_result($polaczenie); + echo "Drugie wywo³anie pg_get_result(): $wyn2\n"; + $wiersze2 = pg_num_rows($wyn2); + echo "$wyn2 ma $wiersze2 rekordy(ów)\n"; +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +Pierwsze wywo³anie pg_get_result(): Resource id #3 +Resource id #3 ma 3 rekordy(ów) + +Drugie wywo³anie pg_get_result(): Resource id #4 +Resource id #4 ma 1 rekordy(ów) +]]> + </screen> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>pg_send_query</function></member> + </simplelist> + </para> + </refsect1> +</refentry> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/pgsql/functions/pg-host.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-pl/reference/pgsql/functions/pg-host.xml diff -u phpdoc-pl/reference/pgsql/functions/pg-host.xml:1.4 phpdoc-pl/reference/pgsql/functions/pg-host.xml:1.5 --- phpdoc-pl/reference/pgsql/functions/pg-host.xml:1.4 Sat Jun 23 13:29:34 2007 +++ phpdoc-pl/reference/pgsql/functions/pg-host.xml Tue Jun 3 08:32:17 2008 @@ -1,48 +1,108 @@ -<?xml version="1.0" encoding="iso-8859-2"?> -<!-- EN-Revision: 1.2 Maintainer: jarek Status: ready --> -<!-- $Revision: 1.4 $--> -<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> - <refentry xml:id="function.pg-host" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>pg_host</refname> - <refpurpose> - Zwraca nazwê komputera zwi±zan± z identyfikatorem po³±czenia - </refpurpose> - </refnamediv> - <refsect1> - <title>Opis</title> - <methodsynopsis> - <type>string</type><methodname>pg_host</methodname> - <methodparam><type>resource</type><parameter>connection</parameter></methodparam> - </methodsynopsis> - <para> - <function>pg_host</function> zwraca nazwê komputera z któr± jest - zwi±zany wskazany identyfikator po³±czenia <parameter>connection</parameter>. - </para> - <para> - Zobacz tak¿e <function>pg_connect</function> i - <function>pg_pconnect</function>. - </para> - </refsect1> - </refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> +<?xml version="1.0" encoding="iso-8859-2"?> +<!-- EN-Revision: 1.7 Maintainer: garbus Status: ready --> +<!-- $Revision: 1.5 $--> +<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> +<!-- CREDITS: jarek --> +<refentry xml:id="function.pg-host" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>pg_host</refname> + <refpurpose> + Zwraca nazwê komputera zwi±zanego z po³±czeniem + </refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>pg_host</methodname> + <methodparam choice="opt"><type>resource</type><parameter>polaczenie</parameter></methodparam> + </methodsynopsis> + <para> + <function>pg_host</function> zwraca nazwê komputera, + dla danego identyfikatora <parameter>polaczenie</parameter>, + z którym po³±czony jest PostgreSQL. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>polaczenie</parameter></term> + <listitem> + <para> + Identyfikator po³±czenia do bazy PostgreSQL. Gdy parametr + <parameter>polaczenie</parameter> nie zosta³ podany, domy¶lne po³±czenie + jest u¿ywane. Domy¶lnym po³±czeniem jest ostatnie po³±czenie stworzone przez + <function>pg_connect</function> lub <function>pg_pconnect</function>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + £añcuch (ang. <type>string</type>) zawieraj±cy nazwê komputera, do którego + <parameter>polaczenie</parameter> jest nawi±zane, lub &false; w razie b³êdu. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>pg_host</function> - przyk³ad</title> + <programlisting role="php"> +<![CDATA[ +<?php +$pgsql_polacz = pg_connect("dbname=marek host=localhost"); + +if ($pgsql_polacz) { + print "Nawi±zano po³±czenie do: " . pg_host($pgsql_polacz) . "<br/>\n"; +} else { + print pg_last_error($pgsql_polacz); + exit; +} +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>pg_connect</function></member> + <member><function>pg_pconnect</function></member> + </simplelist> + </para> + </refsect1> +</refentry> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/pgsql/functions/pg-last-error.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-pl/reference/pgsql/functions/pg-last-error.xml diff -u phpdoc-pl/reference/pgsql/functions/pg-last-error.xml:1.4 phpdoc-pl/reference/pgsql/functions/pg-last-error.xml:1.5 --- phpdoc-pl/reference/pgsql/functions/pg-last-error.xml:1.4 Sat Jun 23 13:29:34 2007 +++ phpdoc-pl/reference/pgsql/functions/pg-last-error.xml Tue Jun 3 08:32:17 2008 @@ -1,60 +1,118 @@ -<?xml version="1.0" encoding="iso-8859-2"?> -<!-- EN-Revision: 1.2 Maintainer: jarek Status: ready --> -<!-- $Revision: 1.4 $--> -<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> - <refentry xml:id="function.pg-last-error" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>pg_last_error</refname> - <refpurpose>Zwraca ostatni komunikat b³êdu zwi±zany z po³±czeniem</refpurpose> - </refnamediv> - <refsect1> - <title>Opis</title> - <methodsynopsis> - <type>string</type><methodname>pg_last_error</methodname> - <methodparam><type>resource</type><parameter>connection</parameter></methodparam> - </methodsynopsis> - <para> - <function>pg_last_error</function> Zwraca ostatni komunikat b³êdu - zwi±zany z po³±czeniem <parameter>connection</parameter>. - </para> - <para> - Komunikat b³êdu mo¿e byæ zamazany przez wewnêtrzne wywo³ania - funkcji PostgreSQL(libpq). Funkcja mo¿e nie zwróciæ w³a¶ciwego - komunikatu, je¶li w module PostgreSQL wyst±pi³o wiele b³êdów. - </para> - <para> - Stosuj <function>pg_result_error</function>, - <function>pg_result_status</function> i - <function>pg_connection_status</function> dla lepszej obs³ugi b³êdów. - </para> - <note> - <para> - Ta funkcja by³a poprzednio nazwana <literal>pg_errormessage()</literal>. - </para> - </note> - <para> - Zobacz tak¿e <function>pg_result_error</function>. - </para> - </refsect1> - </refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> +<?xml version="1.0" encoding="iso-8859-2"?> +<!-- EN-Revision: 1.10 Maintainer: garbus Status: ready --> +<!-- $Revision: 1.5 $--> +<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> +<!-- CREDITS: jarek --> +<refentry xml:id="function.pg-last-error" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>pg_last_error</refname> + <refpurpose>Zwraca ³añcuch ostatniego komunikatu b³êdu dla po³±czenia</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>pg_last_error</methodname> + <methodparam choice="opt"><type>resource</type><parameter>polaczenie</parameter></methodparam> + </methodsynopsis> + <para> + <function>pg_last_error</function> zwraca ostatni komunikat b³êdu + dla po³±czenia danego parametrem <parameter>polaczenie</parameter>. + </para> + <para> + Komunikaty b³êdów mog± byæ zamazane przez wewnêtrzne wywo³ania + funkcji PostgreSQL(libpq). Funkcja mo¿e nie zwróciæ w³a¶ciwego + komunikatu, je¶li wewn±trz modu³u PostgreSQL wyst±pi³o wiele b³êdów. + </para> + <para> + Stosuj <function>pg_result_error</function>, <function>pg_result_error_field</function>, + <function>pg_result_status</function> i + <function>pg_connection_status</function> dla lepszej obs³ugi b³êdów. + </para> + <note> + <para> + Ta funkcja by³a poprzednio nazwana <function>pg_errormessage</function>. + </para> + </note> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>polaczenie</parameter></term> + <listitem> + <para> + Identyfikator po³±czenia do bazy danych PostgreSQL. Gdy + <parameter>polaczenie</parameter> nie zosta³ podany, domy¶lne po³±czenie + jest u¿yte. Domy¶lnym po³±czeniem jest ostatnie, stworzone przez + <function>pg_connect</function> lub <function>pg_pconnect</function>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + £añcuch (ang. <type>string</type>) zawieraj±cy ostatni komunikat b³êdu dla + danego poprzez parametr <parameter>polaczenie</parameter> po³±czenia, lub &false; w razie niepowodzenia. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>pg_last_error</function> - przyk³ad</title> + <programlisting role="php"> +<![CDATA[ +<?php + $polaczenie = pg_connect("dbname=wydawca") or die("Nie mo¿na siê po³±czyæ"); + + // Zapytanie, które nie zosta³o wykonane + $wyn = pg_query($polaczenie, "select * from nie_istniejaca_tabela"); + + echo pg_last_error($polaczenie); +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>pg_result_error</function></member> + <member><function>pg_result_error_field</function></member> + </simplelist> + </para> + </refsect1> +</refentry> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/pgsql/functions/pg-lo-close.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-pl/reference/pgsql/functions/pg-lo-close.xml diff -u phpdoc-pl/reference/pgsql/functions/pg-lo-close.xml:1.4 phpdoc-pl/reference/pgsql/functions/pg-lo-close.xml:1.5 --- phpdoc-pl/reference/pgsql/functions/pg-lo-close.xml:1.4 Sat Jun 23 13:29:34 2007 +++ phpdoc-pl/reference/pgsql/functions/pg-lo-close.xml Tue Jun 3 08:32:17 2008 @@ -1,57 +1,113 @@ -<?xml version="1.0" encoding="iso-8859-2"?> -<!-- EN-Revision: 1.2 Maintainer: jarek Status: ready --> -<!-- $Revision: 1.4 $--> -<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> - <refentry xml:id="function.pg-lo-close" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>pg_lo_close</refname> - <refpurpose>Zamyka wielki obiekt (Large Object - LO)</refpurpose> - </refnamediv> - <refsect1> - <title>Opis</title> - <methodsynopsis> - <type>bool</type><methodname>pg_lo_close</methodname> - <methodparam><type>resource</type><parameter>large_object</parameter></methodparam> - </methodsynopsis> - <para> - <function>pg_lo_close</function> zamyka wielki obiekt(Large Object). - <parameter>large_object</parameter> jest identyfikatorem wielkiego obiektu (LO) - z wywo³ania <function>pg_lo_open</function>. - </para> - <para> - U¿ycie interfejsu wielkich obiektów (LO) wymaga zamkniêcia wszystkich operacji - z nim zwi±zanych wewn±trz transakcji. - </para> - <note> - <para> - Ta funkcja by³a poprzednio nazwana <literal>pg_loclose()</literal>. - </para> - </note> - <para> - Zobacz tak¿e <function>pg_lo_open</function>, - <function>pg_lo_create</function> i - <function>pg_lo_import</function>. - </para> - </refsect1> - </refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> +<?xml version="1.0" encoding="iso-8859-2"?> +<!-- EN-Revision: 1.7 Maintainer: garbus Status: ready --> +<!-- $Revision: 1.5 $--> +<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> +<!-- CREDITS: jarek --> +<refentry xml:id="function.pg-lo-close" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>pg_lo_close</refname> + <refpurpose>Zamyka wielki obiekt (LO)</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>pg_lo_close</methodname> + <methodparam><type>resource</type><parameter>uchwyt</parameter></methodparam> + </methodsynopsis> + <para> + <function>pg_lo_close</function> zamyka wielki obiekt + (z ang. Large Object - LO). <parameter>uchwyt</parameter> jest identyfikatorem + wielkiego obiektu (LO) wywo³anego funkcj± <function>pg_lo_open</function>. + </para> + <para> + U¿ycie interfejsu wielkich obiektów (LO) wymaga zamkniêcia wszystkich operacji + z nim zwi±zanych wewn±trz transakcji. + </para> + <note> + <para> + Ta funkcja by³a poprzednio nazwana <function>pg_loclose</function>. + </para> + </note> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>uchwyt</parameter></term> + <listitem> + <para> + Identyfikator wielkiego obiektu (LO) PostgreSQL-a, zwrócony przez <function>pg_lo_open</function>. + </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_lo_close</function> - przyk³ad</title> + <programlisting role="php"> +<![CDATA[ +<?php + $baza_danych = pg_connect("dbname=jacarta"); + pg_query($baza_danych, "begin"); + $oid = pg_lo_create($baza_danych); + echo "$oid\n"; + $uchwyt = pg_lo_open($baza_danych, $oid, "w"); + echo "$uchwyt\n"; + pg_lo_write($uchwyt, "large object data"); + pg_lo_close($uchwyt); + pg_query($baza_danych, "commit"); +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>pg_lo_open</function></member> + <member><function>pg_lo_create</function></member> + <member><function>pg_lo_import</function></member> + </simplelist> + </para> + </refsect1> +</refentry> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/pgsql/functions/pg-lo-export.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-pl/reference/pgsql/functions/pg-lo-export.xml diff -u phpdoc-pl/reference/pgsql/functions/pg-lo-export.xml:1.4 phpdoc-pl/reference/pgsql/functions/pg-lo-export.xml:1.5 --- phpdoc-pl/reference/pgsql/functions/pg-lo-export.xml:1.4 Sat Jun 23 13:29:34 2007 +++ phpdoc-pl/reference/pgsql/functions/pg-lo-export.xml Tue Jun 3 08:32:17 2008 @@ -1,57 +1,137 @@ -<?xml version="1.0" encoding="iso-8859-2"?> -<!-- EN-Revision: 1.2 Maintainer: jarek Status: ready --> -<!-- $Revision: 1.4 $--> -<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.6 --> - <refentry xml:id="function.pg-lo-export" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>pg_lo_export</refname> - <refpurpose>Eksportuje wielki obiekt (Large Object - LO) do pliku</refpurpose> - </refnamediv> - <refsect1> - <title>Opis</title> - <methodsynopsis> - <type>bool</type><methodname>pg_lo_export</methodname> - <methodparam><type>int</type><parameter>oid</parameter></methodparam> - <methodparam><type>string</type><parameter>pathname</parameter></methodparam> - <methodparam choice="opt"><type>resource</type><parameter>connection</parameter></methodparam> - </methodsynopsis> - <para> - Parametr <parameter>oid</parameter> wskazuje obiektu (LO) który ma byæ eksportowany, - <parameter>pathname</parameter> wskazuje ¶cie¿kê do pliku do którego obiekt ma byæ zapisany. - Funkcja zwraca &false; je¶li wyst±pi b³±d, &true; w przeciwnym razie. - </para> - <para> - U¿ycie interfejsu wielkich obiektów (LO) wymaga zamkniêcia wszystkich operacji - z nim zwi±zanych wewn±trz transakcji. - </para> - <note> - <para> - Ta funkcja by³a poprzednio nazwana <literal>pg_loexport()</literal>. - </para> - </note> - <para> - Zobacz tak¿e <function>pg_lo_import</function>. - </para> - </refsect1> - </refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> +<?xml version="1.0" encoding="iso-8859-2"?> +<!-- EN-Revision: 1.9 Maintainer: garbus Status: ready --> +<!-- $Revision: 1.5 $--> +<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.6 --> +<!-- CREDITS: jarek --> +<refentry xml:id="function.pg-lo-export" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>pg_lo_export</refname> + <refpurpose>Eksportuje wielki obiekt (Large Object - LO) do pliku</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>pg_lo_export</methodname> + <methodparam><type>resource</type><parameter>polaczenie</parameter></methodparam> + <methodparam><type>int</type><parameter>oid</parameter></methodparam> + <methodparam><type>string</type><parameter>sciezka</parameter></methodparam> + </methodsynopsis> + <methodsynopsis> + <type>bool</type><methodname>pg_lo_export</methodname> + <methodparam><type>int</type><parameter>oid</parameter></methodparam> + <methodparam><type>string</type><parameter>sciezka</parameter></methodparam> + </methodsynopsis> + <para> + <function>pg_lo_export</function> pobiera wielki obiekt w + bazie PostgreSQL i zapisuje jego zawarto¶æ do lokalnego systemu + plików. + </para> + <para> + U¿ycie interfejsu wielkich obiektów (LO) wymaga zamkniêcia wszystkich operacji + z nim zwi±zanych wewn±trz transakcji. + </para> + <note> + <para> + Ta funkcja by³a poprzednio nazwana <function>pg_loexport</function>. + </para> + </note> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>polaczenie</parameter></term> + <listitem> + <para> + Identyfikator po³±czenia do bazy PostgreSQL. Gdy + <parameter>polaczenie</parameter> nie zosta³o podane, domy¶lne po³±czenie + zostaje u¿yte. Domy¶lnym po³±czeniem jest ostatnie stworzone przez + <function>pg_connect</function> lub <function>pg_pconnect</function>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>oid</parameter></term> + <listitem> + <para> + <varname>OID</varname> wielkiego obiektu w bazie danych. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>sciezka</parameter></term> + <listitem> + <para> + Pe³na ¶cie¿ka i nazwa pliku, do którego zostanie zapisana + zawarto¶æ wielkiego obiektu w systemie plików klienta. + </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_lo_export</function> - przyk³ad</title> + <programlisting role="php"> +<![CDATA[ +<?php + $baza_danych = pg_connect("dbname=jacarta"); + pg_query($baza_danych, "begin"); + $oid = pg_lo_create($baza_danych); + $uchwyt = pg_lo_open($baza_danych, $oid, "w"); + pg_lo_write($uchwyt, "large object data"); + pg_lo_close($uchwyt); + pg_lo_export($baza_danych, $oid, '/tmp/lob.dat'); + pg_query($baza_danych, "commit"); +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>pg_lo_import</function></member> + </simplelist> + </para> + </refsect1> +</refentry> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> +