cvs: phpdoc-pl /reference/pgsql .cvsignore reference.xml /reference/pgsql/functions pg-affected-rows.xml pg-cancel-query.xml pg-client-encoding.xml
pg-close.xml pg-connect.xml pg-connection-busy.xml pg-connection-reset.xml pg-connection-status.xml pg-convert.xml pg-copy-from.xml pg-copy-to.xml
pg-dbname.xml pg-delete.xml pg-end-copy.xml pg-escape-bytea.xml pg-escape-string.xml pg-fetch-array.xml pg-fetch-object.xml pg-fetch-result.xml
pg-fetch-row.xml pg-field-is-null.xml pg-field-name.xml pg-field-num.xml pg-field-prtlen.xml pg-field-size.xml pg-field-type.xml pg-free-result.xml
pg-get-result.xml pg-host.xml pg-insert.xml pg-last-error.xml pg-last-notice.xml pg-last-oid.xml pg-lo-close.xml pg-lo-create.xml pg-lo-export.xml
pg-lo-import.xml pg-lo-open.xml pg-lo-read-all.xml pg-lo-read.xml pg-lo-seek.xml pg-lo-tell.xml pg-lo-unlink.xml pg-lo-write.xml pg-metadata.xml
pg-num-fields.xml pg-num-rows.xml pg-options.xml pg-pconnect.xml pg-port.xml pg-put-line.xml pg-query.xml pg-result-error.xml pg-result-status.xml
pg-select.xml pg-send-query.xml pg-set-client-encoding.xml pg-trace.xml pg-tty.xml pg-untrace.xml pg-update.xml

From: Date: Tue, 21 May 2002 10:09:53 +0000
Subject: cvs: phpdoc-pl /reference/pgsql .cvsignore reference.xml /reference/pgsql/functions pg-affected-rows.xml pg-cancel-query.xml pg-client-encoding.xml
pg-close.xml pg-connect.xml pg-connection-busy.xml pg-connection-reset.xml pg-connection-status.xml pg-convert.xml pg-copy-from.xml pg-copy-to.xml
pg-dbname.xml pg-delete.xml pg-end-copy.xml pg-escape-bytea.xml pg-escape-string.xml pg-fetch-array.xml pg-fetch-object.xml pg-fetch-result.xml
pg-fetch-row.xml pg-field-is-null.xml pg-field-name.xml pg-field-num.xml pg-field-prtlen.xml pg-field-size.xml pg-field-type.xml pg-free-result.xml
pg-get-result.xml pg-host.xml pg-insert.xml pg-last-error.xml pg-last-notice.xml pg-last-oid.xml pg-lo-close.xml pg-lo-create.xml pg-lo-export.xml
pg-lo-import.xml pg-lo-open.xml pg-lo-read-all.xml pg-lo-read.xml pg-lo-seek.xml pg-lo-tell.xml pg-lo-unlink.xml pg-lo-write.xml pg-metadata.xml
pg-num-fields.xml pg-num-rows.xml pg-options.xml pg-pconnect.xml pg-port.xml pg-put-line.xml pg-query.xml pg-result-error.xml pg-result-status.xml
pg-select.xml pg-send-query.xml pg-set-client-encoding.xml pg-trace.xml pg-tty.xml pg-untrace.xml pg-update.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969345731@lists.php.net to get a copy of this message
leszek Tue May 21 06:09:53 2002 EDT Added files: /phpdoc-pl/reference/pgsql .cvsignore reference.xml /phpdoc-pl/reference/pgsql/functions pg-affected-rows.xml pg-cancel-query.xml pg-client-encoding.xml pg-close.xml pg-connect.xml pg-connection-busy.xml pg-connection-reset.xml pg-connection-status.xml pg-convert.xml pg-copy-from.xml pg-copy-to.xml pg-dbname.xml pg-delete.xml pg-end-copy.xml pg-escape-bytea.xml pg-escape-string.xml pg-fetch-array.xml pg-fetch-object.xml pg-fetch-result.xml pg-fetch-row.xml pg-field-is-null.xml pg-field-name.xml pg-field-num.xml pg-field-prtlen.xml pg-field-size.xml pg-field-type.xml pg-free-result.xml pg-get-result.xml pg-host.xml pg-insert.xml pg-last-error.xml pg-last-notice.xml pg-last-oid.xml pg-lo-close.xml pg-lo-create.xml pg-lo-export.xml pg-lo-import.xml pg-lo-open.xml pg-lo-read-all.xml pg-lo-read.xml pg-lo-seek.xml pg-lo-tell.xml pg-lo-unlink.xml pg-lo-write.xml pg-metadata.xml pg-num-fields.xml pg-num-rows.xml pg-options.xml pg-pconnect.xml pg-port.xml pg-put-line.xml pg-query.xml pg-result-error.xml pg-result-status.xml pg-select.xml pg-send-query.xml pg-set-client-encoding.xml pg-trace.xml pg-tty.xml pg-untrace.xml pg-update.xml Log: Added pgsql translation [jarek]

Index: phpdoc-pl/reference/pgsql/.cvsignore +++ phpdoc-pl/reference/pgsql/.cvsignore functions.xml Index: phpdoc-pl/reference/pgsql/reference.xml +++ phpdoc-pl/reference/pgsql/reference.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- $Revision: 1.1 $ --> <reference id="ref.pgsql"> <title>PostgreSQL</title> <titleabbrev>PostgreSQL</titleabbrev> <partintro> <para> PostgreSQL, stworzony pocz±tkowo na Wydziale Nauk Komputerowych Uniwersytetu Berkeley, by³ pionierem wielu koncepcji obiektowych obecnie dostêpnych w komercyjnych bazach danych. Jest zgodny z ze standardami jêzyka SQL92/SQL3, obs³uguje transakcje i pozwala definiowaæ w³asne typy danych. PostgreSQL jest wolno-dostêpnym spadkobierc± oryginalnego kodu Berkeley. </para> <para> PostgreSQL jest produktem Open Source i jest dostêpny za darmo. Aby korzystaæ wsparcia dla PosgreSQL-a, bêdziesz potrzebowa³ PostgreSQL w wersji 6.5 lub nowszej. Aby wykorzystaæ wszystkie mo¿liwo¶ci modu³u potrzebny jest PostgreSQL 7.0 lub nowszy. PostgreSQL wspiera wiele stron kodowych, z wielobajtowymi w³±cznie. Aktualna wersja i wiêcej informacji jest dostêpne tu: <ulink url="&url.pgsql;">&url.pgsql;</ulink>. </para> <para> W celu uruchomienia wsparcia dla PostgreSQL-a, nale¿y u¿yæ opcji <option role="configure">--with-pgsql[=DIR]</option> w czasie kompilacji PHP. Je¶li jest dostêpny wspó³dzielony modu³, mo¿e on byæ za³adowany przez wpisanie dyrektywy <link linkend="ini.extension">extension</link> w pliku &php.ini; lub funkcji <function>dl</function>. Wspierane dyrektywy ini s± opisane w pliku <filename>php.ini-dist</filename> który jest zawarty w dystrybucji ¼ród³owej. </para> <warning> <para> U¿ywanie modu³u PostgreSQL z PHP 4.0.6 nie jest zalecane ze wzglêdu na b³±d w obs³udze komunikatów. Zaleca siê u¿ywanie wersji 4.1.0 lub nowszej. </para> </warning> <warning> <para> Nazwy funkcji PostgreSQL bêd± zmienione w wersji 4.2.0 w celu dostosowania do obecnych standardów kodowania. Wiêkszo¶æ nowych nazw bêdzie mia³a dodatkowe podkre¶lenia np. pg_lo_open(). Niektóre funkcje bêd± mia³y zmienione nazwy, aby ujednoliciæ nazewnictwo np. pg_exec() na pg_query(). Stare nazwy bêdzie mo¿na u¿ywaæ w wersji 4.2.0 i w kilku kolejnych, mog± jednak byæ usuniête w przysz³o¶ci. </para> <table> <title>Zmienione nazwy funkcji</title> <tgroup cols="2"> <thead> <row> <entry>Stara nazwa</entry> <entry>Nowa nazwa</entry> </row> </thead> <tbody> <row> <entry><function>pg_exec</function></entry> <entry><function>pg_query</function></entry> </row> <row> <entry><function>pg_getlastoid</function></entry> <entry><function>pg_last_oid</function></entry> </row> <row> <entry><function>pg_cmdtuples</function></entry> <entry><function>pg_affected_rows</function></entry> </row> <row> <entry><function>pg_numrows</function></entry> <entry><function>pg_num_rows</function></entry> </row> <row> <entry><function>pg_numfields</function></entry> <entry><function>pg_num_fields</function></entry> </row> <row> <entry><function>pg_fieldname</function></entry> <entry><function>pg_field_name</function></entry> </row> <row> <entry><function>pg_fieldsize</function></entry> <entry><function>pg_field_size</function></entry> </row> <row> <entry><function>pg_fieldnum</function></entry> <entry><function>pg_field_num</function></entry> </row> <row> <entry><function>pg_fieldprtlen</function></entry> <entry><function>pg_field_prtlen</function></entry> </row> <row> <entry><function>pg_fieldisnull</function></entry> <entry><function>pg_field_is_null</function></entry> </row> <row> <entry><function>pg_freeresult</function></entry> <entry><function>pg_free_result</function></entry> </row> <row> <entry><function>pg_result</function></entry> <entry><function>pg_fetch_result</function></entry> </row> <row> <entry><function>pg_loreadall</function></entry> <entry><function>pg_lo_read_all</function></entry> </row> <row> <entry><function>pg_locreate</function></entry> <entry><function>pg_lo_create</function></entry> </row> <row> <entry><function>pg_lounlink</function></entry> <entry><function>pg_lo_unlink</function></entry> </row> <row> <entry><function>pg_loopen</function></entry> <entry><function>pg_lo_open</function></entry> </row> <row> <entry><function>pg_loclose</function></entry> <entry><function>pg_lo_close</function></entry> </row> <row> <entry><function>pg_loread</function></entry> <entry><function>pg_lo_read</function></entry> </row> <row> <entry><function>pg_lowrite</function></entry> <entry><function>pg_lo_write</function></entry> </row> <row> <entry><function>pg_loimport</function></entry> <entry><function>pg_lo_import</function></entry> </row> <row> <entry><function>pg_loexport</function></entry> <entry><function>pg_lo_export</function></entry> </row> </tbody> </tgroup> </table> <para> Stara sk³adnia <function>pg_connect</function>/ <function>pg_pconnect</function> bêdzie wycofywana aby zapewniæ w przysz³o¶ci wsparcie dla asynchronicznych po³±czeñ. Prosimy u¿ywaæ ³añcucha po³±czeniowego dla <function>pg_connect</function> i <function>pg_pconnect</function>. </para> </warning> <para> Nie wszystkie funkcje s± wspierane przez wszystkie wersje. Zale¿y to od twojej wersji libpq (Interfejs C klienta PostgreSQL) i sposobu jej kompilacji. Je¶li brakuje jakiej¶ funkcji, libpq nie bêdzie wspieraæ danej funkcjonalno¶ci. </para> <para> Jest istotne ¿eby u¿ywaæ nowszej biblioteki libpq ni¿ serwer PostgreSQL z którym siê ³±czymy. Je¶li libpq jest starsze ni¿ oczekiwane przez serwer PostgreSQL, mo¿esz mieæ problemy. </para> <para> Od wersji 6.3 (03/02/1998) PostgreSQL u¿ywa gniazdek domen unixowych ("unix domain socket"). Port TCP NIE bêdzie domy¶lnie otwarty. Poni¿sza tabela pokazuje te nowe rodzaje po³±czeñ. Plik gniazdka znajduje siê w <filename>/tmp/.s.PGSQL.5432</filename>. Ta opcja mo¿e byæ odblokowana przez u¿ycie flagi '-i' z poleceniem <command>postmaster</command> i oznacza: "nas³uchuj na gniazdkach TCP/IP oraz na gniazdkach domen unixowych". <table> <title>PostgreSQL Postmaster i PHP</title> <tgroup cols="3"> <thead> <row> <entry>Postmaster</entry> <entry>PHP</entry> <entry>Status</entry> </row> </thead> <tbody> <row> <entry>postmaster &amp;</entry> <entry>pg_connect("dbname=MyDbName");</entry> <entry>OK</entry> </row> <row> <entry>postmaster -i &amp;</entry> <entry>pg_connect("dbname=MyDbName");</entry> <entry>OK</entry> </row> <row> <entry>postmaster &amp;</entry> <entry>pg_connect("host=localhost dbname=MyDbName");</entry> <entry> Unable to connect to PostgreSQL server: connectDB() failed: Is the postmaster running and accepting TCP/IP (with -i) connection at 'localhost' on port '5432'? in /path/to/file.php on line 20. </entry> </row> <row> <entry>postmaster -i &amp;</entry> <entry>pg_connect("host=localhost dbname=MyDbName");</entry> <entry>OK</entry> </row> </tbody> </tgroup> </table> </para> <para> Po³±czenie do serwera PostgreSQL mo¿e byæ nawi±zane poprzez ustawienie nastêpuj±cych warto¶ci w ³añcuchu po³±czenia: <command>$conn = pg_connect("host=myHost port=myPort tty=myTTY options=myOptions dbname=myDB user=myUser password=myPassword "); </command> </para> <para> Poprzednia sk³adnia: <command> $conn = pg_connect ("host", "port", "options", "tty", "dbname") </command> jest wycofywana. </para> <para> Zmienne ¶rodowiskowe wp³ywaj± na zachowanie klienta i serwera PostgreSQL. Przyk³adowo, modu³ PostgreSQL bêdzie poszukiwa³ zmiennej PGHOST kiedy nazwa serwera bêdzie pominiêta w ³añcuchu po³±czeniowym. U¿ywane zmienne ¶rodowiskowe zmieniaj± siê wraz z wersjami. Szczegó³y mo¿na znale¼æ w PostgreSQL Programmer's Manual (libpq - Environment Variables). </para> <para> Upewnij siê ¿e ustawi³e¶ zmienne ¶rodowiskowe dla w³a¶ciwego u¿ytkownika. U¿yj <literal>$_ENV</literal> lub <function>getenv</function> aby sprawdziæ jakie zmienne ¶rodowiskowe s± dostêpne dla bie¿±cego procesu. </para> <example> <title>Ustawianie domy¶lnych parametrów</title> <programlisting> <![CDATA[ PGHOST=psgql.exmaple.com PGPORT=7890 PGDATABASE=web-system PGUSER=web-user PGPASSWORD=secret PGDATESTYLE=ISO PGTZ=JST PGCLIENTENCODING=EUC-JP export PGHOST PGPORT PGDATABASE PGUSER PGPASSWORD PGDATESTYLE PGTZ PGCLIENTENCODING ]]> </programlisting> </example> <para> Poczynaj±c od PostgreSQL 7.1.0, jedno pole typu text mo¿e pomie¶ciæ do 1GB. Wcze¶niejsze wersje limitowa³y wielko¶æ pola do rozmiaru bloku (domy¶lnie 8KB, maksymalnie 32KB, definiowane przy kompilacji). </para> <para> U¿ycie interfejsu wielkich obiektów (LO - Large Objects) wymaga zamkniêcia go wewn±trz bloku transakcji. Transakcja rozpoczyna siê poleceniem SQL <command>BEGIN</command> i - je¶li transakcja siê powiedzie - koñczy siê poleceniem <command>COMMIT</command> lub <command>END</command>. Je¶li transakcja nie powiedzie siê, powinna byæ zakoñczona poleceniem <command>ROLLBACK</command> lub <command>ABORT</command>. <example> <title>U¿ywanie wielkich obiektów (Large Objects)</title> <programlisting role="php"> <![CDATA[ <?php $database = pg_connect ("dbname=jacarta"); pg_query ($database, "begin"); $oid = pg_lo_create ($database); echo "$oid\n"; $handle = pg_lo_open ($database, $oid, "w"); echo "$handle\n"; pg_lo_write ($handle, "large object data"); pg_lo_close ($handle); pg_query ($database, "commit"); ?> ]]> </programlisting> </example> Nie wolno zamykaæ po³±czenia do serwera PostgreSQL, przed zamkniêciem wielkiego obiektu. </para> </partintro> &reference.pgsql.functions; </reference> <!-- 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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-affected-rows.xml +++ phpdoc-pl/reference/pgsql/functions/pg-affected-rows.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <refentry id="function.pg-affected-rows"> <refnamediv> <refname>pg_affected_rows</refname> <refpurpose>Zwraca liczbê zmodyfikowanych wierszy</refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>int</type><methodname>pg_affected_rows</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> </methodsynopsis> <para> <function>pg_affected_rows</function> zwraca liczbê wierszy dodanych,zmodyfikowanych lub usuniêtych przez zapytania INSERT, UPDATE, lub DELETE wykonane przez <function>pg_query</function>. Je¶li ¿aden rekord nie zosta³ zmieniony funkcja zwóci 0. <example> <title><function>pg_affected_rows</function></title> <programlisting role="php"> <![CDATA[ <?php $result = pg_query ($conn, "INSERT INTO publisher VALUES ('Author')"); $cmdtuples = pg_affected_rows ($result); echo $cmdtuples . " rekord(y) zosta³(y) zmienione."; ?> ]]> </programlisting> </example> </para> <note> <para> Ta funkcja by³a nazwana <literal>pg_cmdtuples()</literal>. </para> </note> <para> Zobacz tak¿e <function>pg_query</function> i <function>pg_num_rows</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-cancel-query.xml +++ phpdoc-pl/reference/pgsql/functions/pg-cancel-query.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.4 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.61 --> <refentry id='function.pg-cancel-query'> <refnamediv> <refname>pg_cancel_query</refname> <refpurpose> Przerywa zapytanie asynchroniczne </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>bool</type><methodname>pg_cancel_query</methodname> <methodparam><type>resource</type><parameter>connection</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_query</function>. </para> <para> Zobacz te¿ <function>pg_send_query</function> i <function>pg_connection_busy</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-client-encoding.xml +++ phpdoc-pl/reference/pgsql/functions/pg-client-encoding.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.16 --> <refentry id="function.pg-client-encoding"> <refnamediv> <refname>pg_client_encoding</refname> <refpurpose> Zwraca stronê kodow± klienta </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>string</type><methodname>pg_client_encoding</methodname> <methodparam choice="opt"><type>resource</type><parameter>connection</parameter></methodparam> </methodsynopsis> <para> <function>pg_client_encoding</function> zwraca stronê kodow± klienta jako ³añcuch. Zwracany ³añcuch bêdzie jednym z: SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW, UNICODE, MULE_INTERNAL, LATINX (X=1...9), KOI8, WIN, ALT, SJIS, BIG5, WIN1250. </para> <note> <para> Ta funkcja wymaga PHP-4.0.3 lub nowszego i PostgreSQL-7.0 lub nowszego. Je¶li libpq jest skompilowane bez wsparcia dla kodowania wielobajtowego, <function>pg_set_client_encoding</function> zawsze zwraca &quot;SQL_ASCII&quot;. Wspierane strony kodowe zale¿± od wersji PostgreSQL Sprawd¼ podrêcznik PostgreSQL ¿eby poznaæ szczegó³y wsparcia dla kodowania wielobajtowego. </para> <para> Ta funkcja by³a poprzednio nazywana <function>pg_clientencoding</function>. </para> </note> <para> Zobacz tak¿e <function>pg_set_client_encoding</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-close.xml +++ phpdoc-pl/reference/pgsql/functions/pg-close.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 --> <refentry id="function.pg-close"> <refnamediv> <refname>pg_close</refname> <refpurpose>Zamyka po³±czenie z PostgreSQL</refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>bool</type><methodname>pg_close</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> </methodsynopsis> <para> <function>pg_close</function> zamyka tymczasowe po³±czenie z serwerem PostgreSQL zwi±zane z podanym parametrem <parameter>connection</parameter>. &return.success; </para> <note> <para> U¿ywanie <function>pg_close</function> jest z regu³y niepotrzebne, jako ¿e po³±czenia tymczasowe s± zamykane automatycznie po zakoñczeniu wykonywania skryptu. </para> </note> <para> Nie wolno zamykaæ po³±czenia je¶li jest otwarty wielki obiekt. W pierwszej kolejno¶ci nale¿y zamkn±æ wszystkie wielkie obiekty. </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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-connect.xml +++ phpdoc-pl/reference/pgsql/functions/pg-connect.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <refentry id="function.pg-connect"> <refnamediv> <refname>pg_connect</refname> <refpurpose>Otwiera tymczasowe po³±czenie do PostgreSQL-a</refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>resource</type><methodname>pg_connect</methodname> <methodparam><type>string</type><parameter>connection_string</parameter></methodparam> </methodsynopsis> <para> <function>pg_connect</function> Zwraca identyfikator po³±czenia, który jest u¿ywany przez inne funkcje PostgreSQL-a. </para> <para> <function>pg_connect</function> Otwiera tymczasowe po³±czenie do serwera PostgreSQL okre¶lonego przez <parameter>connection_string</parameter>. Zwraca identyfikator po³±czenia je¶li operacja siê powiedzie. Zwraca &false; je¶li po³±czenie nie mog³o byæ nawi±zane. <parameter>connection_string</parameter> powinien byæ ³añcuchem w cudzys³owach. <example> <title>U¿ywanie pg_connect</title> <programlisting role="php"> <![CDATA[ <?php $dbconn = pg_connect ("dbname=mary"); //Otwiera po³±czenie z baz± "mary" $dbconn2 = pg_connect ("host=localhost port=5432 dbname=mary"); //Otwiera po³±czenie z baz± "mary" na komputerze "localhost" przez port "5432" $dbconn3 = pg_connect ("host=sheep port=5432 dbname=mary user=lamb password=foo"); //Otwiera po³±czenie z baz± "mary" na komputerze "sheep" z u¿yciem nazwy u¿ytkownika i has³a $conn_string = "host=sheep port=5432 dbname=test user=lamb password=bar"; $dbconn4 = pg_connect ($conn_string); //Otwiera po³±czenie z baz± "test" na komputerze "sheep" z u¿yciem nazwy u¿ytkownika i has³a ?> ]]> </programlisting> </example> Argumenty dostêpne dla <parameter>connection_string</parameter> to <parameter>host</parameter>, <parameter>port</parameter>, <parameter>tty</parameter>, <parameter>options</parameter>, <parameter>dbname</parameter>, <parameter>user</parameter>, i <parameter>password</parameter>. </para> <para> Drugie wywo³anie <function>pg_connect</function> z tym samym <parameter>connection_string</parameter>, nie spowoduje nawi±zania nowego po³±czenia, ale zwrócony zostanie identyfikator po³±czenia ju¿ istniej±cego. Mo¿esz mieæ kilka po³±czeñ do tej samej bazy je¶li u¿yjesz innych ³añcuchów po³±czenia (connection string). </para> <para> Stara sk³adnia z wieloma parametrami <command>$conn = pg_connect ("host", "port", "options", "tty", "dbname") </command> zosta³a wycofana. </para> <para> Zobacz tak¿e <function>pg_pconnect</function>, <function>pg_close</function>, <function>pg_host</function>, <function>pg_port</function>, <function>pg_tty</function>, <function>pg_options</function> i <function>pg_dbname</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-connection-busy.xml +++ phpdoc-pl/reference/pgsql/functions/pg-connection-busy.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.3 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 --> <refentry id='function.pg-connection-busy'> <refnamediv> <refname>pg_connection_busy</refname> <refpurpose> Sprawdza czy po³±czenie jest zajête czy wolne </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>bool</type><methodname>pg_connection_busy</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> </methodsynopsis> <para> <function>pg_connection_busy</function> zwraca &true; je¶li po³±czenie connection jest zajête. Je¶li jest zajête, poprzednie zapytanie jest wci±¿ wykonywane. Je¶li bêdzie wywo³ane <function>pg_get_result</function>, zostanie ono zablokowane. </para> <para> Zobacz tak¿e <function>pg_connection_status</function> i <function>pg_get_result</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-connection-reset.xml +++ phpdoc-pl/reference/pgsql/functions/pg-connection-reset.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 --> <refentry id='function.pg-connection-reset'> <refnamediv> <refname>pg_connection_reset</refname> <refpurpose> Restartuje po³±czenie </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>bool</type><methodname>pg_connection_reset</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> </methodsynopsis> <para> <function>pg_connection_reset</function> restartuje po³±czenie. Jest u¿yteczne w sytuacja awaryjnych. &return.success; </para> <para> Zobacz tak¿e <function>pg_connect</function>, <function>pg_pconnect</function> i <function>pg_connection_status</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-connection-status.xml +++ phpdoc-pl/reference/pgsql/functions/pg-connection-status.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 --> <refentry id='function.pg-connection-status'> <refnamediv> <refname>pg_connection_status</refname> <refpurpose> Zwraca stan po³±czenia </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>int</type><methodname>pg_connection_status</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> </methodsynopsis> <para> <function>pg_connection_status</function> zwraca stan po³±czenia. Mo¿liwe stany to <literal>PGSQL_CONNECTION_OK</literal> i <literal>PGSQL_CONNECTION_BAD</literal>. </para> <para> Zobacz tak¿e <function>pg_connection_busy</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-convert.xml +++ phpdoc-pl/reference/pgsql/functions/pg-convert.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.3 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.80 --> <refentry id='function.pg-convert'> <refnamediv> <refname>pg_convert</refname> <refpurpose> Konwertuje tablicê asocjacyjn± na postaæ u¿yteczn± w zapytaniu SQL. </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>array</type><methodname>pg_convert</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> <methodparam><type>string</type><parameter>table_name</parameter></methodparam> <methodparam><type>array</type><parameter>assoc_array</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>options</parameter></methodparam> </methodsynopsis> <para> <function>pg_convert</function> sprawdza i konwertuje <literal>assoc_array</literal> na postaæ u¿yteczn± w zapytaniu SQL. </para> <note> <para> Funkcja eksperymentalana. </para> </note> <para> Zobacz tak¿e <function>pg_metadata</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-copy-from.xml +++ phpdoc-pl/reference/pgsql/functions/pg-copy-from.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.3 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 --> <refentry id='function.pg-copy-from'> <refnamediv> <refname>pg_copy_from</refname> <refpurpose> Wstawia wiersze do tabeli z tablicy </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>int</type><methodname>pg_copy_from</methodname> <methodparam><type>int</type><parameter>connection</parameter></methodparam> <methodparam><type>string</type><parameter>table_name</parameter></methodparam> <methodparam><type>array</type><parameter>rows</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>delimiter</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>null_as</parameter></methodparam> </methodsynopsis> <para> <function>pg_copy_from</function> wstawia wiersze do tabeli z tablicy <parameter>rows</parameter>. Wywy³uje wewnêtrznie polecenie <literal>COPY</literal> aby wstawiæ wiersze. &return.success; </para> <para> Zobacz tak¿e <function>pg_copy_to</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-copy-to.xml +++ phpdoc-pl/reference/pgsql/functions/pg-copy-to.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <refentry id='function.pg-copy-to'> <refnamediv> <refname>pg_copy_to</refname> <refpurpose> Kopiuje tabele do tablicy </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>int</type><methodname>pg_copy_to</methodname> <methodparam><type>int</type><parameter>connection</parameter></methodparam> <methodparam><type>string</type><parameter>table_name</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>delimiter</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>null_as</parameter></methodparam> </methodsynopsis> <para> <function>pg_copy_to</function> kopiuje tabele to tablicy. Zwracana jest tablica wynikowa lub &false; w razie niepowodzenia. </para> <para> Zobacz tak¿e <function>pg_copy_from</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-dbname.xml +++ phpdoc-pl/reference/pgsql/functions/pg-dbname.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <refentry id="function.pg-dbname"> <refnamediv> <refname>pg_dbname</refname> <refpurpose>Podaje nazwê bazy danych</refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>string</type><methodname>pg_dbname</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> </methodsynopsis> <para> <function>pg_dbname</function> zwraca nazwê bazy danych dla podanego identyfikatora po³±czenia (<parameter>connection</parameter>) Zwraca &false;, je¶li <parameter>connection</parameter> nie jest poprawnym identyfikatorem po³±czenia. </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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-delete.xml +++ phpdoc-pl/reference/pgsql/functions/pg-delete.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.4 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.80 --> <refentry id='function.pg-delete'> <refnamediv> <refname>pg_delete</refname> <refpurpose> Usuwa wiersze </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>long</type><methodname>pg_delete</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> <methodparam><type>string</type><parameter>table_name</parameter></methodparam> <methodparam><type>array</type><parameter>assoc_array</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>options</parameter></methodparam> </methodsynopsis> <para> <function>pg_delete</function> usuwa wiersze okre¶lone przez warunki z tablicy <literal>assoc_array</literal> które zawieraj± <literal>kolumna=>warto¶æ</literal>. Je¶li jest u¿yty parametr <literal>option</literal>, jest on przekazywany do wywo³ania <function>pg_convert</function> z <literal>assoc_array</literal> </para> <example> <title>pg_delete</title> <programlisting role="php"> <![CDATA[ <?php $db = pg_connect ('dbname=foo'); // To jest bezpieczne, gdy¿ $_POST jest konwertowane automatycznie $res = pg_delete($db, 'post_log', $_POST); if ($res) { echo "Dane okre¶lone przez POST zosta³y usuniête: $res\n"; } else { echo "U¿ytkownik wprowadzi³ b³êdne dane\n"; } ?> ]]> </programlisting> </example> <note> <para> Funkcja eksperymentalna. </para> </note> <para> Zobacz tak¿e <function>pg_convert</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-end-copy.xml +++ phpdoc-pl/reference/pgsql/functions/pg-end-copy.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 --> <refentry id="function.pg-end-copy"> <refnamediv> <refname>pg_end_copy</refname> <refpurpose>Synchronizuje klienta z serwerem PostgreSQL.</refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>bool</type><methodname>pg_end_copy</methodname> <methodparam choice="opt"><type>resource</type><parameter>connection</parameter></methodparam> </methodsynopsis> <para> <function>pg_end_copy</function> synchronizuje klienta z serwerem PostgreSQL po wykonaniu operacji kopiowania przez <function>pg_put_line</function>. Ta funkcja musi byæ wywo³ana, inaczej klient mo¿e byæ niezsychronizowany z serwerem i mo¿e wyst±piæ b³±d. Zwraca &true; je¶li operacja siê uda³a lub &false; w przeciwnym wypadku. &return.success; </para> <para> Zobacz tak¿e <function>pg_put_line</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-escape-bytea.xml +++ phpdoc-pl/reference/pgsql/functions/pg-escape-bytea.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.3 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.61 --> <refentry id='function.pg-escape-bytea'> <refnamediv> <refname>pg_escape_bytea</refname> <refpurpose> Konwertuje ³añcuch wstawiaj±c sekwencje Escape dla typu bytea </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>string</type><methodname>pg_escape_bytea</methodname> <methodparam><type>string</type><parameter>data</parameter></methodparam> </methodsynopsis> <para> <function>pg_escape_bytea</function> konwertuje ³añcuch wstawiaj±c sekwencje Escape dla typu bytea. Zwraca ³añcuch z sekwencjami Escape. </para> <note> <para> Przy wywo³aniu SELECT dla typu bytea, PostgrSQL zwraca ³añcuch zawieraj±cy warto¶ci ósemkowe poprzedzone znakiem "\" (np. \032). U¿ytkownik musi sam odkodowaæ ten dane. </para> <para> Ta funkcja wymaga PostgreSQL 7.2 lub nowszego. Dla PostgreSQL 7.2.0 i 7.2.1, type bytea musi byæ wskazany je¶li uruchomisz wsparcie dla kodowania wielobajtowego np. <literal>INSERT INTO test_table (image) VALUES ('$image_escaped'::bytea);</literal> PostgreSQL 7.2.2 i nowszy nie potrzebuje wskazania typu. Wyj±tkiem jest przypadek kiedy klient i serwer pos³uguj± siê ró¿nymi stronami kodowymi. W takim przypadku mo¿e wyst±piæ b³±d (multi-byte stream error). U¿ytkownik musi wtedy wskazaæ typ bytea ¿eby unikn±æ takiego b³êdu. </para> <para> Nowsze wersje PostgreSQL-a bêd± wspieraæ równie¿ funcjê odwrotn±. Wsparcie dla tej funkcji zostanie dodane jak tylko bêdzie ona dostêpna. </para> </note> <para> Zobacz tak¿e <function>pg_escape_string</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-escape-string.xml +++ phpdoc-pl/reference/pgsql/functions/pg-escape-string.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.61 --> <refentry id='function.pg-escape-string'> <refnamediv> <refname>pg_escape_string</refname> <refpurpose> Konwertuje ³añcuch wstawiaj±c sekwencje Escape dla typu text/char </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>string</type><methodname>pg_escape_string</methodname> <methodparam><type>string</type><parameter>data</parameter></methodparam> </methodsynopsis> <para> <function>pg_escape_string</function> konwertuje ³añcuch wstawiaj±c sekwencje Escape dla typu text/char. Zwraca ³añcuch z sekwencjami Escape dla PostgreSQL-a. Zalecane jest u¿ywanie tej funkcji w miejsce <function>addslashes</function>. </para> <note> <para> Funkcja wymaga PostgreSQL 7.2 lub nowszego. </para> </note> <para> Zobacz tak¿e <function>pg_escape_bytea</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-fetch-array.xml +++ phpdoc-pl/reference/pgsql/functions/pg-fetch-array.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.4 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <refentry id="function.pg-fetch-array"> <refnamediv> <refname>pg_fetch_array</refname> <refpurpose>Pobiera wiersz jako tablicê</refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>array</type><methodname>pg_fetch_array</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> <methodparam><type>int</type><parameter>row</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>result_type</parameter></methodparam> </methodsynopsis> <para> <function>pg_fetch_array</function> Zwraca tablicê zawieraj±c± dane z pobranego wiersza lub &false; je¶li nie ma wiêcej wierszy. </para> <para> <function>pg_fetch_array</function> is jest rozszerzen± wersj± <function>pg_fetch_row</function>. Oprócz zapisywania danych w indeksach numerycznych, zapisuje je te¿ w indeksach przyporz±dkowuj±cych (asocjacyjnych), u¿ywaj±c nazw kolumn jako kluczy. </para> <para> <parameter>row</parameter> jest numerem wiersza do pobrania. Pierwszy wiersz ma numer 0. </para> <para> <parameter>result_type</parameter> opcjonalny parametr okre¶laj±cy rodzaj wyniku. <parameter>result_type</parameter> jest sta³± i mo¿e przyjmowaæ nastêpuj±ce warto¶ci: PGSQL_ASSOC, PGSQL_NUM, i PGSQL_BOTH. <function>pg_fetch_array</function> zwraca tablicê z indeksami przyporz±dkowuj±cymi które maj± nazwê kolumny jako klucz dla PGSQL_ASSOC, numer kolumny jako klucz dla PGSQL_NUM i obydwa (nazwê/numer) dla PGSQL_BOTH. Domy¶ln± warto¶ci± jest PGSQL_BOTH. <note> <para> <parameter>result_type</parameter> zosta³ dodany w PHP 4.0. </para> </note> </para> <para> <function>pg_fetch_array</function> nie jest znacz±co wolniejsze ni¿ <function>pg_fetch_row</function>, a znacz±co u³atwia pracê. </para> <para> Zobacz tak¿e <function>pg_fetch_row</function>, <function>pg_fetch_object</function> i <function>pg_fetch_result</function>. </para> <para> <example> <title>PostgreSQL fetch array</title> <programlisting role="php"> <![CDATA[ <?php $conn = pg_pconnect ("dbname=publisher"); if (!$conn) { echo "Wyst±pi³ b³±d.\n"; exit; } $result = pg_query ($conn, "SELECT * FROM authors"); if (!$result) { echo "Wyst±pi³ b³±d.\n"; exit; } $arr = pg_fetch_array ($result, 0, PGSQL_NUM); echo $arr[0] . " <- array\n"; $arr = pg_fetch_array ($result, 1, PGSQL_ASSOC); echo $arr["author"] . " <- array\n"; ?> ]]> </programlisting> </example> </para> <note> <para> Od wersji 4.1.0, <parameter>row</parameter> jest opcjonalny. Wywo³anie <function>pg_fetch_array</function> zwiêksza wewnêtrzny licznik wierszy o 1. </para> </note> </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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-fetch-object.xml +++ phpdoc-pl/reference/pgsql/functions/pg-fetch-object.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.6 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <refentry id="function.pg-fetch-object"> <refnamediv> <refname>pg_fetch_object</refname> <refpurpose>Pobiera wiersz jako obiekt</refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>object</type><methodname>pg_fetch_object</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> <methodparam><type>int</type><parameter>row</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>result_type</parameter></methodparam> </methodsynopsis> <para> <function>pg_fetch_object</function> zwraca obiekt którego atrybutami s± dane pobranego wiersza. Zwraca &false; je¶li nie ma wiêcej wierszy lub wyst±pi³ b³±d. </para> <para> <function>pg_fetch_object</function> jest podobna do <function>pg_fetch_array</function>, z jedn± ró¿nic± - zwracany jest obiekt zamiast tablicy. Oznacza to ¿e dane s± dostêpne tylko przez nazwy kolumn, a nie przez indeksy, gdy¿ liczby nie mog± byæ atrybutami obiektu. </para> <para> <parameter>row</parameter> numer wiersza do pobrania. Pierwszy wiersz ma numer 0. </para> <para> Pod wzglêdem szybko¶ci funkcja ta jest identyczna jak <function>pg_fetch_array</function>, i prawie tak szybka jak <function>pg_fetch_row</function> (ró¿nica jest nieznacz±ca). </para> <note> <para> Od wersji 4.3.0, <parameter>result_type</parameter> jest domy¶lnie ustawiany na PGSQL_ASSOC, podczas gdy w starszych wersjach domy¶lnie by³o PGSQL_BOTH. W przypadku tej funkcji indeksy kolumn nie maja nie maja zastosowania, gdy¿ liczby nie mog± byæ atrybutami obiektu. </para> <para> <parameter>result_type</parameter> mo¿e byæ usuniêty w nowych wersjach. </para> </note> <para> Zobacz tak¿e <function>pg_query</function>, <function>pg_fetch_array</function>, <function>pg_fetch_row</function> i <function>pg_fetch_result</function>. </para> <para> <example> <title>Postgres fetch object</title> <programlisting role="php"> <![CDATA[ <?php $database = "verlag"; $db_conn = pg_connect ("host=localhost port=5432 dbname=$database"); if (!$db_conn): ?> <H1>B³±d przy po³±czeniu z baz± postgres <?php echo $database ?></H1> <?php exit; endif; $qu = pg_query ($db_conn, "SELECT * FROM verlag ORDER BY autor"); $row = 0; // postgres wymaga licznika wierszy, dla innych baz mo¿e byæ to zbêdne while ($data = pg_fetch_object ($qu, $row)) { echo $data->autor." ("; echo $data->jahr ."): "; echo $data->titel."<BR>"; $row++; } ?> <PRE> <?php $fields[] = Array ("autor", "Author"); $fields[] = Array ("jahr", " Year"); $fields[] = Array ("titel", " Title"); $row= 0; // postgres wymaga licznika wierszy, dla innych baz mo¿e byæ to zbêdne while ($data = pg_fetch_object ($qu, $row)) { echo "----------\n"; reset ($fields); while (list (,$item) = each ($fields)): echo $item[1].": ".$data->$item[0]."\n"; endwhile; $row++; } echo "----------\n"; ?> </PRE> <?php pg_free_result ($qu); pg_close ($db_conn); ?> ]]> </programlisting> </example> </para> <note> <para> Od wersji 4.1.0, <parameter>row</parameter> jest opcjonalny. Wywo³anie <function>pg_fetch_object</function> zwiêksza wewnêtrzny licznik wierszy o 1. </para> </note> </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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-fetch-result.xml +++ phpdoc-pl/reference/pgsql/functions/pg-fetch-result.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.3 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 --> <refentry id="function.pg-fetch-result"> <refnamediv> <refname>pg_fetch_result</refname> <refpurpose>Pobiera dane z wyniku</refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>mixed</type><methodname>pg_fetch_result</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> <methodparam><type>int</type><parameter>row</parameter></methodparam> <methodparam><type>mixed</type><parameter>field</parameter></methodparam> </methodsynopsis> <para> <function>pg_fetch_result</function> zwraca dane z wyniku <parameter>result</parameter> zwróconego przez <function>pg_query</function>. <parameter>row</parameter> jest numerem wiersza. <parameter>field</parameter> jest nazw± kolumny (³añcuch) lub jej indeksem(liczba). Parametry <parameter>row</parameter> i <parameter>field</parameter> wskazuj± któr± komórkê tabeli wyniku nale¿y zwróciæ. Wiersze s± numerowane od 0. Zamiast nazwy kolumny mo¿na u¿yæ numerycznego indeksu kolumny. Kolumny s± numerowane od 0. </para> <para> PostgreSQL ma wiele wbudowanych typów danych, ale tylko niektóre s± tu wspomagane bezpo¶rednio. Dane typów takich jak <type>integer</type>, <type>boolean</type> i void <!-- FIXME: is that still true? PHP supports boolean&null now... --> <!-- Yes, supporting boolean&null breaks scripts. pg_fetch_array() can be used instead. I might take of this issue with additional ini directive. yohgaki@php.net --> s± zwracane jako <type>integer</type>. Dane typów takich jak <type>float</type>, i typy rzeczywiste s± zwracane jako <type>float</type>. Wszystkie pozosta³e typy, w³±czaj±c tablice, s± zwracane jako ³añcuchy znaków, sformatowane tak jak mo¿esz to zobaczyæ przy u¿yciu programu <command>psql</command>. </para> <!-- Dodane przez t³umacza dla ujednolicenia. 2002-05-19 Jaros³aw Tabor jarek@srv.pl --> <note> <para> Ta funkcja by³a nazwana <literal>pg_result()</literal>. </para> </note> <!-- Koniec --> </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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-fetch-row.xml +++ phpdoc-pl/reference/pgsql/functions/pg-fetch-row.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.4 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <refentry id="function.pg-fetch-row"> <refnamediv> <refname>pg_fetch_row</refname> <refpurpose>Pobiera wiersz jako tablicê z indeksami numerycznymi</refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>array</type><methodname>pg_fetch_row</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> <methodparam><type>int</type><parameter>row</parameter></methodparam> </methodsynopsis> <para> <function>pg_fetch_row</function> pobiera jeden wiersz z wyniku wskazanego przez <parameter>result</parameter>. Wiersz jest zwracany jako tablica. Ka¿da kolumna jest elementem tablicy o indeksie odpowiadaj±cym numerowi kolumny w wyniku. Kolumny s± numerowane od 0. </para> <para> Zwraca tablicê z danymi odpowiadaj±cymi pobranemu wierszowi lub &false; gdy nie ma wiêcej wierszy. </para> <para> Zobacz tak¿e: <function>pg_query</function>, <function>pg_fetch_array</function>, <function>pg_fetch_object</function> i <function>pg_fetch_result</function>. </para> <para> <example> <title>Postgres fetch row</title> <programlisting role="php"> <![CDATA[ <?php $conn = pg_pconnect ("dbname=publisher"); if (!$conn) { echo "Wyst±pi³ b³±d.\n"; exit; } $result = pg_query ($conn, "SELECT * FROM authors"); if (!$result) { echo "Wyst±pi³ b³±d.\n"; exit; } $num = pg_num_rows($result); for ($i=0; $i < $num; $i++) { $r = pg_fetch_row($result, $i); for ($j=0; $j < count($r); $j++) { echo "$r[$j]&nbsp;"; } echo "<BR>"; } ?> ]]> </programlisting> </example> </para> <note> <para> Od wersji 4.1.0, <parameter>row</parameter> jest opcjonalny. Wywo³anie <function>pg_fetch_row</function> zwiêksza wewnêtrzny licznik wierszy o 1. </para> </note> </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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-field-is-null.xml +++ phpdoc-pl/reference/pgsql/functions/pg-field-is-null.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <refentry id="function.pg-field-is-null"> <refnamediv> <refname>pg_field_is_null</refname> <refpurpose>Sprawdza czy pole zawiera &null;</refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>int</type><methodname>pg_field_is_null</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> <methodparam><type>int</type><parameter>row</parameter></methodparam> <methodparam><type>mixed</type><parameter>field</parameter></methodparam> </methodsynopsis> <para> <function>pg_field_is_null</function> sprawdza czy pole zawiera &null;. Zwraca 1 je¶li wskazane pole zawiera &null;. Zwraca 0 je¶li pole jest ró¿ne od &null;. Pola mog± byæ okre¶lone jako indeks (numer) lub jako nazwa kolumny (³añcuch). Wiersze s± numerowane od 0. </para> <note> <para> Ta funkcja by³a poprzednio nazwana <literal>pg_fieldisnull()</literal>. </para> </note> </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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-field-name.xml +++ phpdoc-pl/reference/pgsql/functions/pg-field-name.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <refentry id="function.pg-field-name"> <refnamediv> <refname>pg_field_name</refname> <refpurpose>Zwraca nazwê kolumny</refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>string</type><methodname>pg_field_name</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> <methodparam><type>int</type><parameter>field_number</parameter></methodparam> </methodsynopsis> <para> <function>pg_field_name</function> zwraca nazwê kolumny znajduj±cej siê na pozycji <parameter>field_number</parameter> w wyniku <parameter>result</parameter> PostgreSQL-a. Kolumny s± numerowane od 0. </para> <note> <para> Ta funkcja by³a poprzednio nazwana <literal>pg_fieldname()</literal>. </para> </note> <para> Zobacz tak¿e <function>pg_field_num</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-field-num.xml +++ phpdoc-pl/reference/pgsql/functions/pg-field-num.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <refentry id="function.pg-field-num"> <refnamediv> <refname>pg_field_num</refname> <refpurpose>Zwraza numer kolumny o podanej nazwie</refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>int</type><methodname>pg_field_num</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> <methodparam><type>string</type><parameter>field_name</parameter></methodparam> </methodsynopsis> <para> <function>pg_field_num</function> zwraca indeks (numer) kolumny o podanje nazwie w wyniku <parameter>result</parameter> PostgreSQL-a. Kolumny sa numerowane od 0. Funkcja zwraca -1 w razie b³êdu. </para> <note> <para> Ta funkcja by³a poprzednio nazwana <literal>pg_fieldnum()</literal>. </para> </note> <para> Zobacz tak¿e <function>pg_field_name</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-field-prtlen.xml +++ phpdoc-pl/reference/pgsql/functions/pg-field-prtlen.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <refentry id="function.pg-field-prtlen"> <refnamediv> <refname>pg_field_prtlen</refname> <refpurpose>Zwraca drukowaln± d³ugo¶æ</refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>int</type><methodname>pg_field_prtlen</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> <methodparam><type>int</type><parameter>row_number</parameter></methodparam> <methodparam><type>string</type><parameter>field_name</parameter></methodparam> </methodsynopsis> <para> <function>pg_field_prtlen</function> zwraca aktualn± drukowaln± d³ugo¶æ (liczbê znaków) wskazanej danej wyniku <parameter>result</parameter> PostgreSQL-a. Wiersze s± numerowane od 0. Funkcja zwraca -1 w razie b³êdu. </para> <note> <para> Ta funkcja by³a poprzednio nazwana <literal>pg_fieldprtlen()</literal>. <!-- Od t³umacza: w oryginale podana jest poprzednia nazwa funkcji: pg_field_prtlen co jest oczywistym b³êdem. 2002-05-19, Jaros³aw Tabor, jarek@srv.pl --> </para> </note> <para> Zobacz tak¿e <function>pg_field_size</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-field-size.xml +++ phpdoc-pl/reference/pgsql/functions/pg-field-size.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <refentry id="function.pg-field-size"> <refnamediv> <refname>pg_field_size</refname> <refpurpose> Zwraca wewnêtrzny rozmiar kolumny </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>int</type><methodname>pg_field_size</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> <methodparam><type>int</type><parameter>field_number</parameter></methodparam> </methodsynopsis> <para> <function>pg_field_size</function> zwraca wewnêtrzny rozmiar (w bajtach) wskazanej kolumny. Kolumny s± numerowane od 0. Funkcja zwraca -1 dla kolumn o zmiennej d³ugo¶ci i &false; w razie b³êdu. </para> <note> <para> Ta funkcja by³a poprzednio nazwana <literal>pg_fieldsize()</literal>. </para> </note> <para> Zobacz tak¿e <function>pg_field_len</function> i <function>pg_field_type</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-field-type.xml +++ phpdoc-pl/reference/pgsql/functions/pg-field-type.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.52 --> <refentry id="function.pg-field-type"> <refnamediv> <refname>pg_field_type</refname> <refpurpose> Zwraca typ wskazanej kolumny </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>string</type><methodname>pg_field_type</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> <methodparam><type>int</type><parameter>field_number</parameter></methodparam> </methodsynopsis> <para> <function>pg_fieldtype</function> zwraca ³añcuch zawieraj±cy typ kolumny wskazanej przez <parameter>field_number</parameter> w wyniku <parameter>result</parameter> PostgreSQL-a. Kolumny s± numerowane od 0. </para> <note> <para> Ta funkcja by³a poprzednio nazwana <literal>pg_fieldtype()</literal>. <!-- Od t³umacza: w oryginale podana jest poprzednia nazwa funkcji: pg_field_type co jest oczywistym b³êdem. 2002-05-19, Jaros³aw Tabor, jarek@srv.pl --> </para> </note> <para> Zobacz tak¿e <function>pg_field_len</function> i <function>pg_field_name</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-free-result.xml +++ phpdoc-pl/reference/pgsql/functions/pg-free-result.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <refentry id="function.pg-free-result"> <refnamediv> <refname>pg_free_result</refname> <refpurpose>Zwalnia pamiêæ wyniku</refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>bool</type><methodname>pg_free_result</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> </methodsynopsis> <para> <function>pg_free_result</function> wymaga wywo³ania tylko je¶li przejmujesz siê ilo¶ci± pamiêci u¿ywanej w czasie wykonywania skryptu. Ca³a pamiêæ wyników jest automatycznie zwalniana po zakoñczeniu wykonywania skryptu. Je¶li jednak jeste¶ pewien ¿e nie potrzebujesz wiêcej danego wyniku, mo¿esz wywo³aæ <function>pg_free_result</function> z identyfikatorem wyniku, a ca³a pamiêæ z nim zwi±zana zostanie zwolniona. Zwraca &true; je¶li operacja siê powiedzie lub &false; je¶li wyst±pi b³±d. </para> <note> <para> Ta funkcja by³a poprzednio nazwana <literal>pg_freeresult()</literal>. <!-- Od t³umacza: w oryginale podana jest poprzednia nazwa funkcji: pg_field_len co jest oczywistym b³êdem. 2002-05-19, Jaros³aw Tabor, jarek@srv.pl --> </para> </note> <para> Zobacz tak¿e <function>pg_query</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-get-result.xml +++ phpdoc-pl/reference/pgsql/functions/pg-get-result.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.58 --> <refentry id='function.pg-get-result'> <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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-host.xml +++ phpdoc-pl/reference/pgsql/functions/pg-host.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <refentry id="function.pg-host"> <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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-insert.xml +++ phpdoc-pl/reference/pgsql/functions/pg-insert.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.4 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.80 --> <refentry id='function.pg-insert'> <refnamediv> <refname>pg_insert</refname> <refpurpose> Wstawia tablicê do tabeli </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>bool</type><methodname>pg_insert</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> <methodparam><type>string</type><parameter>table_name</parameter></methodparam> <methodparam><type>array</type><parameter>assoc_array</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>options</parameter></methodparam> </methodsynopsis> <para> <function>pg_insert</function> wstawia tablicê asocjacyjn± <literal>assoc_array</literal> zawieraj±c± dane w postaci <literal>kolumna=>warto¶æ</literal> do tabeli <literal>table_name</literal>. Je¶li jest u¿yty parametr <literal>option</literal>, jest on przekazywany do wywo³ania <function>pg_convert</function> z <literal>assoc_array</literal>. </para> <example> <title>pg_insert</title> <programlisting role="php"> <![CDATA[ <?php $db = pg_connect ('dbname=foo'); // To wywo³anie jest bezpieczne, gdy¿ $_POST jest konwertowane automatycznie $res = pg_insert($db, 'post_log', $_POST); if ($res) { echo "POST dane zapisane pomy¶lnie\n"; } else { echo "U¿ytkownik musia³ wys³aæ z³e dane\n"; } ?> ]]> </programlisting> </example> <note> <para> Funkcja eksperymentalna. </para> </note> <para> Zobacz tak¿e <function>pg_convert</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-last-error.xml +++ phpdoc-pl/reference/pgsql/functions/pg-last-error.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <refentry id="function.pg-last-error"> <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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-last-notice.xml +++ phpdoc-pl/reference/pgsql/functions/pg-last-notice.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 --> <refentry id="function.pg-last-notice"> <refnamediv> <refname>pg_last_notice</refname> <refpurpose> Zwraca komunikaty informacyjne serwera PostgreSQL </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>string</type><methodname>pg_last_notice</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> </methodsynopsis> <para> <function>pg_last_notice</function> zwraca ostatni komunikat informacyjny serwera PostgreSQL zwi±zanego z po³±czeniem <parameter>connection</parameter>. Serwer PostgreSQL wysy³a komunikaty informacyjne w pewnych przypadkach, np. gdy trasakcja nie mo¿e byæ kontynuowana. Przy u¿yciu <function>pg_last_notice</function>, mo¿esz unikn±æ wywo³ywania bezu¿ytecznych zapytañ, sprawdzaj±c czy komunikat jest zwi±zany z transakcj± czy nie. </para> <warning> <para> Ta funkcja jest EKSPERYMENTALNA i nie jest jeszcze w pe³ni zaimplementowana. <function>pg_last_notice</function> zosta³a dodana w PHP 4.0.6. Niestety PHP 4.0.6 ma b³±d w obs³udze tych komunikatów. U¿ywanie modu³u PostgreSQL z PHP 4.0.6 nie jest zalecane, nawet je¶li nie u¿ywasz funkcji <function>pg_last_notice</function>. </para> <para> Ta funkcja jest w pe³ni zaimplementowana w PHP 4.3.0. Wcze¶niejsze ni¿ 4.3.0 wersje PHP ignoruj± parametr <parameter>connection</parameter>. </para> </warning> <para> ¦ledzenie komunikatów informacyjnych mo¿e byæ ustawtione jako opcjonalne przez ustawienie parametru ini <literal>pgsql.ignore_notice</literal> na 1 od wersji PHP 4.3.0. </para> <para> Logowanie komunikatów informacyjnych mo¿e byæ ustawtione jako opcjonalne przez ustawienie parametru ini <literal>pgsql.log_notice</literal> na 0 od wersji PHP 4.3.0. Dopuki <literal>pgsql.ignore_notice</literal> jest ustawione na 0, komunikaty informacyjne nie mog± byæ logowane. </para> <para> Zobacz tak¿e <function>pg_query</function> i <function>pg_last_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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-last-oid.xml +++ phpdoc-pl/reference/pgsql/functions/pg-last-oid.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.3 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 --> <refentry id="function.pg-last-oid"> <refnamediv> <refname>pg_last_oid</refname> <refpurpose>Zwraca identyfikator ostatniego obiektu</refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>int</type><methodname>pg_last_oid</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> </methodsynopsis> <para> <function>pg_last_oid</function> s³u¿y do pobrania <varname>oid</varname> przypisanego do dopisanego wiersza, je¶li identyfikator wyniku pochodzi z wywo³ania <function>pg_query</function> z poleceniem SQL INSERT. Ta funkcja zwraca dodatni± liczbê je¶li uda³o siê pobraæ <varname>oid</varname> i &false; w razie b³êdu lub je¶li ostatnim zapytaniem wys³anym przez <function>pg_query</function> nie by³ INSERT, lub INSERT siê nie powiód³. </para> <para> OID jest polem opcjonalnym od wersji PostgreSQL 7.2. Je¶li OID nie by³ zdefiniowany w tabeli, programista musi u¿yæ <function>pg_result_status</function> aby sprawdziæ czy rekord zosta³ dopisany czy nie. </para> <note> <para> Ta funkcja by³a poprzednio nazwana <literal>pg_getlastoid()</literal>. </para> </note> <para> Zobacz tak¿e <function>pg_query</function> i <function>pg_result_status</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-lo-close.xml +++ phpdoc-pl/reference/pgsql/functions/pg-lo-close.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <refentry id="function.pg-lo-close"> <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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-lo-create.xml +++ phpdoc-pl/reference/pgsql/functions/pg-lo-create.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <refentry id="function.pg-lo-create"> <refnamediv> <refname>pg_lo_create</refname> <refpurpose>Tworzy wielki obiekt (Large Object - LO)</refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>int</type><methodname>pg_lo_create</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> </methodsynopsis> <para> <function>pg_lo_create</function> tworzy wielki obiekt (LO) i zwraca jego <varname>oid</varname>. Parametr <parameter>connection</parameter> wskazuje istniej±ce po³±czenie do bazy. Tryby dostêpu PostgreSQL-a: INV_READ, INV_WRITE i INV_ARCHIVE nie s± wspierane, obiekt jest tworzony zawsze z dostêpem do odczytu i zapisu. Tryb INV_ARCHIVE zosta³ usuniêty z PostgreSQL-a (wersja 6.3 i nowsze). Funkcja zwraca <varname>oid</varname> lub &false; je¶li wyst±pi³ b³±d. </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_locreate()</literal>. </para> </note> </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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-lo-export.xml +++ phpdoc-pl/reference/pgsql/functions/pg-lo-export.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.6 --> <refentry id="function.pg-lo-export"> <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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-lo-import.xml +++ phpdoc-pl/reference/pgsql/functions/pg-lo-import.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.6 --> <refentry id="function.pg-lo-import"> <refnamediv> <refname>pg_lo_import</refname> <refpurpose>Importuje wielki obiekt (Large Object - LO) z pliku</refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>int</type><methodname>pg_lo_import</methodname> <methodparam><type>string</type><parameter>pathname</parameter></methodparam> <methodparam choice="opt"><type>resource</type><parameter>connection</parameter></methodparam> </methodsynopsis> <para> Parametr <parameter>pathname</parameter> wskazuje ¶cie¿kê do pliku który ma byæ importowany jako wielki obiekt (LO). Zwraca &false; je¶li wyst±pi³ b³±d lub identyfikator utworzonego obiektu w przeciwnym wypadku. </para> <para> U¿ycie interfejsu wielkich obiektów (LO) wymaga zamkniêcia wszystkich operacji z nim zwi±zanych wewn±trz transakcji. </para> &note.sm.uidcheck; <note> <para> Ta funkcja by³a poprzednio nazwana <literal>pg_loimport()</literal>. </para> </note> <para> Zobacz tak¿e <function>pg_lo_export</function> i <function>pg_lo_open</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-lo-open.xml +++ phpdoc-pl/reference/pgsql/functions/pg-lo-open.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <refentry id="function.pg-lo-open"> <refnamediv> <refname>pg_lo_open</refname> <refpurpose>Otwiera wielki obiekt (Large Object - LO)</refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>resource</type><methodname>pg_lo_open</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> <methodparam><type>int</type><parameter>oid</parameter></methodparam> <methodparam><type>string</type><parameter>mode</parameter></methodparam> </methodsynopsis> <para> <function>pg_lo_open</function> otwiera wielki obiekt (LO) i zwraca identyfikator po³±czenia do niego. <parameter>oid</parameter> wskazuje poprawny identyfikator wielkiego obiektu (LO), <parameter>mode</parameter> mo¿e przyjmowaæ warto¶ci "r" - odczyt, "w" - zapis, lub "rw" odczyt/zapis. Funkcja zwraca &false; w razie b³êdu. </para> <warning> <para> Nie wolno zamykaæ po³±czenia z serwerem przed zamkniêciem wszystkich wielkich obiektów. </para> </warning> <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_loopen()</literal>. </para> </note> <para> Zobacz tak¿e <function>pg_lo_close</function> i <function>pg_lo_create</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-lo-read-all.xml +++ phpdoc-pl/reference/pgsql/functions/pg-lo-read-all.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <refentry id="function.pg-lo-read-all"> <refnamediv> <refname>pg_lo_read_all</refname> <refpurpose> Odczytuje wielki obiekt (Large Object - LO) i wys³a go do przegl±darki </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>int</type><methodname>pg_lo_read_all</methodname> <methodparam><type>resource</type><parameter>large_object</parameter></methodparam> </methodsynopsis> <para> <function>pg_lo_read_all</function> odczytuje wielki obiekt (LO) i przekazuje go wprost do przegl±darki, po wys³aniu wszystkich nag³ówków. Przeznaczony g³ównie do wysy³ania danych binarnych, jak obrazy i d¼wiêk. Zwraca ilo¶æ odczytanych danych. Funkcja zwraca &false; w razie b³êdu. </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_loreadall()</literal>. </para> </note> <para> Zobacz tak¿e <function>pg_lo_read</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-lo-read.xml +++ phpdoc-pl/reference/pgsql/functions/pg-lo-read.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.74 --> <refentry id="function.pg-lo-read"> <refnamediv> <refname>pg_lo_read</refname> <refpurpose>Odczytuje wielki obiekt (Large Object - LO)</refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>string</type><methodname>pg_lo_read</methodname> <methodparam><type>resource</type><parameter>large_object</parameter></methodparam> <methodparam><type>int</type><parameter>len</parameter></methodparam> </methodsynopsis> <para> <function>pg_lo_read</function> odczytuje co najwy¿ej <parameter>len</parameter> bajtów z wielkiego obiektu (LO) i zwraca je jako ³añcuch. <parameter>large_object</parameter> wskazuje identyfikator po³±czenia z <function>pg_lo_open</function>, <parameter>len</parameter> wskazuje maksymaln± dopuszczaln± wielko¶æ segmentu wielkiego obiektu. Funkcja zwraca &false; w razie b³êdu. </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_loread()</literal>. </para> </note> <para> Zobacz tak¿e <function>pg_lo_read_all</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-lo-seek.xml +++ phpdoc-pl/reference/pgsql/functions/pg-lo-seek.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <refentry id='function.pg-lo-seek'> <refnamediv> <refname>pg_lo_seek</refname> <refpurpose> Przemieszcza wska¼nik po³o¿enia w wielkim obiekcie (Large Object - LO) </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>bool</type><methodname>pg_lo_seek</methodname> <methodparam><type>resource</type><parameter>large_object</parameter></methodparam> <methodparam><type>int</type><parameter>offset</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>whence</parameter></methodparam> </methodsynopsis> <para> <function>pg_lo_seek</function> przemieszcza wska¼nik po³o¿enia w wielkim obiekcie (LO). Parametr <parameter>whence</parameter> mo¿e przyjmowaæ warto¶ci PGSQL_SEEK_SET, PGSQL_SEEK_CUR lub PGSQL_SEEK_END. </para> <para> Zobacz tak¿e <function>pg_lo_tell</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-lo-tell.xml +++ phpdoc-pl/reference/pgsql/functions/pg-lo-tell.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.74 --> <refentry id='function.pg-lo-tell'> <refnamediv> <refname>pg_lo_tell</refname> <refpurpose> Zwraca wska¼nik po³o¿enia w wielkim obiekcie (Large Object - LO) </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>int</type><methodname>pg_lo_tell</methodname> <methodparam><type>resource</type><parameter>large_object</parameter></methodparam> </methodsynopsis> <para> <function>pg_lo_tell</function> zwraca aktualn± pozycjê wska¼nika po³o¿enia w wielkim obiekcie (LO) liczon± od jego pocz±tku. </para> <para> Zobacz tak¿e <function>pg_lo_seek</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-lo-unlink.xml +++ phpdoc-pl/reference/pgsql/functions/pg-lo-unlink.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <refentry id="function.pg-lo-unlink"> <refnamediv> <refname>pg_lo_unlink</refname> <refpurpose>Usuwa wielki obiekt (Large Object - LO)</refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>bool</type><methodname>pg_lo_unlink</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> <methodparam><type>int</type><parameter>oid</parameter></methodparam> </methodsynopsis> <para> <function>pg_lo_unlink</function> usuwa wielki obiekt (LO) okre¶lony przez <parameter>oid</parameter>. Zwraca &true; je¶li operacja siê powiedzie lub &false; je¶li wyst±pi b³±d. </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_lounlink()</literal>. <!-- Od t³umacza: w oryginale podana jest poprzednia nazwa funkcji: pg_lo_unlink co jest oczywistym b³êdem. 2002-05-19, Jaros³aw Tabor, jarek@srv.pl --> </para> </note> <para> Zobacz tak¿e <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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-lo-write.xml +++ phpdoc-pl/reference/pgsql/functions/pg-lo-write.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <refentry id="function.pg-lo-write"> <refnamediv> <refname>pg_lo_write</refname> <refpurpose>Zapisuje do wielkiego obiektu (Large Object - LO)</refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>int</type><methodname>pg_lo_write</methodname> <methodparam><type>resource</type><parameter>large_object</parameter></methodparam> <methodparam><type>string</type><parameter>data</parameter></methodparam> </methodsynopsis> <para> <function>pg_lo_write</function> zapisuje jak najwiêcej do wielkiego obiektu ze zmiennej <parameter>data</parameter> i zwraca liczbê bajtów zapisanych, lub &false; je¶li wyst±pi³ b³±d. Paramter <parameter>large_object</parameter> jest identyfikatorem pol±czenia z <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_lowrite()</literal>. <!-- Od t³umacza: w oryginale podana jest poprzednia nazwa funkcji: pg_field_type co jest oczywistym b³êdem. 2002-05-19, Jaros³aw Tabor, jarek@srv.pl --> </para> </note> <para> Zobacz tak¿e <function>pg_lo_create</function> i <function>pg_lo_open</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-metadata.xml +++ phpdoc-pl/reference/pgsql/functions/pg-metadata.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.3 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.80 --> <refentry id='function.pg-metadata'> <refnamediv> <refname>pg_metadata</refname> <refpurpose> Pobiera dane o tabeli </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>array</type><methodname>pg_metadata</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> <methodparam><type>string</type><parameter>table_name</parameter></methodparam> </methodsynopsis> <para> <function>pg_metadata</function> zwraca definicje tabeli dla <literal>table_name</literal> jako tablicê. Funkcja zwraca &false; w razie b³êdu. </para> <note> <para> Funkcja eksperymentalna. </para> </note> <para> Zobacz tak¿e <function>pg_convert</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-num-fields.xml +++ phpdoc-pl/reference/pgsql/functions/pg-num-fields.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <refentry id="function.pg-num-fields"> <refnamediv> <refname>pg_num_fields</refname> <refpurpose>Zwraca liczbê kolumn</refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>int</type><methodname>pg_num_fields</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> </methodsynopsis> <para> <function>pg_num_fields</function> zwraca liczbê kolumn w wyniku PostgreSQL. Argumentem jest w³a¶ciwy identyfikator wyniku zwrócony przez <function>pg_query</function>. Funkcja zwraca -1 w razie b³êdu. </para> <note> <para> Ta funkcja by³a poprzednio nazwana <literal>pg_numfields()</literal>. </para> </note> <para> Zobacz tak¿e <function>pg_num_rows</function> i <function>pg_affected_rows</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-num-rows.xml +++ phpdoc-pl/reference/pgsql/functions/pg-num-rows.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <refentry id="function.pg-num-rows"> <refnamediv> <refname>pg_num_rows</refname> <refpurpose>Zwraca liczbê wierszy</refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>int</type><methodname>pg_num_rows</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> </methodsynopsis> <para> <function>pg_num_rows</function> zwraca liczbê wierszy w wyniku <parameter>result</parameter> zwróconym przez <function>pg_query</function>. Funkcja zwraca -1 w razie b³êdu. </para> <note> <para> U¿yj <function>pg_affected_rows</function> aby otrzymaæ liczbê wierszy zmodyfikowanych przez INSERT, UPDATE lub DELETE. </para> </note> <note> <para> Ta funkcja by³a poprzednio nazwana <literal>pg_numrows()</literal>. </para> </note> <para> Zobacz tak¿e <function>pg_num_fields</function> i <function>pg_affected_rows</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-options.xml +++ phpdoc-pl/reference/pgsql/functions/pg-options.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <refentry id="function.pg-options"> <refnamediv> <refname>pg_options</refname> <refpurpose>Podaje opcje powi±zane z po³±czenim</refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>string</type><methodname>pg_options</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> </methodsynopsis> <para> <function>pg_options</function> zwraca ³añcuch zawieraj±cy opcje zwi±zane po³±czeniem wskazanym przez parametr <parameter>connection</parameter>. </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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-pconnect.xml +++ phpdoc-pl/reference/pgsql/functions/pg-pconnect.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 --> <refentry id="function.pg-pconnect"> <refnamediv> <refname>pg_pconnect</refname> <refpurpose>Otwiera sta³e po³±czenie do serwera PostgreSQL</refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>int</type><methodname>pg_pconnect</methodname> <methodparam><type>string</type><parameter>connection_string</parameter></methodparam> </methodsynopsis> <para> <function>pg_pconnect</function> otwiera sta³e po³±czenie do serwera PostgreSQL. Zwraca identyfikator po³±czenia u¿ywany przez inne funkcje PostgreSQL-a. </para> <para> Opis <parameter>connection_string</parameter> znajduje sie przy opisie funkcji <function>pg_connect</function>. </para> <para> Aby zezwoliæ na u¿ywanie sta³ych po³±czeñ, nale¿y ustawiæ dyrektywê &php.ini; <link linkend="ini.pgsql.allow-persistent">pgsql.allow_persistent</link> na &quot;On&quot; (jest to ustawienie domy¶lne). Maksymalna liczba jednoczesnych sta³ych po³±czeñ mo¿e byæ zdefiniowana przez dyrektywê &php.ini; <link linkend="ini.pgsql.max-persistent">pgsql.max_persistent</link> (domy¶lnia warto¶æ to -1 oznacza brak ograniczeñ). Maksymalna liczba wszystkich po³±czeñ mo¿e byæ ustawiona przez dyrektywê &php.ini; <link linkend="ini.pgsql.max-links"> pgsql.max_links</link>. </para> <para> <function>pg_close</function> nie zamyka po³±czeñ sta³ych otwartych przez <function>pg_pconnect</function>. </para> <para> Zobacz tak¿e <function>pg_connect</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-port.xml +++ phpdoc-pl/reference/pgsql/functions/pg-port.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.20 --> <refentry id="function.pg-port"> <refnamediv> <refname>pg_port</refname> <refpurpose> Zwraca numer portu zwi±zany z po³±czeniem </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>int</type><methodname>pg_port</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> </methodsynopsis> <para> <function>pg_port</function> zwraca numer portu dla po³±czenia wskazanego przez <parameter>connection</parameter>. </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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-put-line.xml +++ phpdoc-pl/reference/pgsql/functions/pg-put-line.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.20 --> <refentry id="function.pg-put-line"> <refnamediv> <refname>pg_put_line</refname> <refpurpose>Wysy³a ³añcuch zakoñczony znakiem NULL do serwera PostgreSQL</refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>bool</type><methodname>pg_put_line</methodname> <methodparam choice="opt"><type>resource</type><parameter>connection</parameter></methodparam> <methodparam><type>string</type><parameter>data</parameter></methodparam> </methodsynopsis> <para> <function>pg_put_line</function> wysy³a ³añcuch zakoñczony przez NULL do serwera PostgreSQL. Funkcja jest u¿yteczna do bardzo szybkiego wstawiania danych to tabel, inicjowanych przez operacjê copy PostgreSQL-a. Koñcowy znak NULL jest wstawiany automatycznie. &return.success; </para> <note> <para> Aplikacja musi jawnie wys³aæ dwa znaki: "\." w koñcowej linii, aby poinformowaæ serwer ¿e zakoñczy³a wysy³aæ dane. </para> </note> <para> Zobacz tak¿e <function>pg_end_copy</function>. <example> <title>Szybkie wstawianie danych do tebeli</title> <programlisting role="php"> <![CDATA[ <?php $conn = pg_pconnect ("dbname=foo"); pg_query($conn, "create table bar (a int4, b char(16), d float8)"); pg_query($conn, "copy bar from stdin"); pg_put_line($conn, "3\thello world\t4.5\n"); pg_put_line($conn, "4\tgoodbye world\t7.11\n"); pg_put_line($conn, "\\.\n"); pg_end_copy($conn); ?> ]]> </programlisting> </example> </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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-query.xml +++ phpdoc-pl/reference/pgsql/functions/pg-query.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.3 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <refentry id="function.pg-query"> <refnamediv> <refname>pg_query</refname> <refpurpose>Wykonuje zapytanie do bazy</refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>resource</type><methodname>pg_query</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> <methodparam><type>string</type><parameter>query</parameter></methodparam> </methodsynopsis> <para> <function>pg_query</function> zwraca identyfikator wyniku je¶li zapytnie zosta³o wykonane lub &false; w razie niepowodzenia. Szczegó³y b³êdu mog± byæ odczytane przez funkcje <function>pg_last_error</function> je¶li identyfikator po³±czenia jest prawid³owy. <function>pg_query</function> wysy³a zapytanie SQL do bazy PostgreSQL skazanej przez identyfikator po³±czenia <parameter>connection</parameter> zwrócony przez funkcjê <function>pg_connect</function> lub <function>pg_pconnect</function>. Zwrócona warto¶æ jest identyfikatorem wyniku u¿ywanym przez inne funkcje PostgreSQL takie jak <function>pg_fetch_array</function>. <note> <simpara> <parameter>connection</parameter> jest parametrem opcjonalnym dla <function>pg_query</function>. Je¶li <parameter>connection</parameter> nie jest podane, domy¶lne po³±czenie bêdzie u¿yte. Domy¶lnym po³±czeniem jest ostatnie po³±czenie otwarte przez <function>pg_connect</function> lub <function>pg_pconnect</function>. </simpara> <simpara> Mimo ¿e <parameter>connection</parameter> mo¿e zostaæ pominiete, nie jest to zalecane, gdy¿ mo¿e spowodowaæ trudny do znalezienia b³±d w skrypcie. </simpara> </note> </para> <note> <para> Ta funkcja by³a poprzednio nazwana <literal>pg_exec()</literal>. <literal>pg_exec()</literal> jest wci±¿ dostêpna w celu zachowania kompatybilno¶ci, ale zalecane jest u¿ywanie nowej nazwy. </para> </note> <para> Zobacz tak¿e <function>pg_connect</function>, <function>pg_pconnect</function>, <function>pg_fetch_array</function>, <function>pg_fetch_object</function>, <function>pg_num_rows</function>, i <function>pg_affected_rows</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-result-error.xml +++ phpdoc-pl/reference/pgsql/functions/pg-result-error.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 --> <refentry id='function.pg-result-error'> <refnamediv> <refname>pg_result_error</refname> <refpurpose> Zwraca b³±d zwi±zany z identyfikatorem wyniku </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>string</type><methodname>pg_result_error</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> </methodsynopsis> <para> <function>pg_result_error</function> zwraca komunikat b³êdu zwi±zany z identyfikatorem wyniku <parameter>result</parameter>. Dziêki temu u¿ytkownik ma wiêksz± szanse aby otrzymaæ w³a¶ciwy komunikat ni¿ przy u¿yciu <function>pg_last_error</function>. </para> <para> Zobacz tak¿e <function>pg_query</function>, <function>pg_send_query</function>, <function>pg_get_result</function>, <function>pg_last_error</function> i <function>pg_last_notice</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-result-status.xml +++ phpdoc-pl/reference/pgsql/functions/pg-result-status.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.58 --> <refentry id='function.pg-result-status'> <refnamediv> <refname>pg_result_status</refname> <refpurpose> Zwraca stan wyniku </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>int</type><methodname>pg_result_status</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> </methodsynopsis> <para> <function>pg_result_status</function> zwraca stan wyniku. Mo¿liwe warto¶ci to PGSQL_EMPTY_QUERY, PGSQL_COMMAND_OK, PGSQL_TUPLES_OK, PGSQL_COPY_TO, PGSQL_COPY_FROM, PGSQL_BAD_RESPONSE, PGSQL_NONFATAL_ERROR i PGSQL_FATAL_ERROR. </para> <para> Zobacz tak¿e <function>pg_connection_status</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-select.xml +++ phpdoc-pl/reference/pgsql/functions/pg-select.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.4 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.80 --> <refentry id='function.pg-select'> <refnamediv> <refname>pg_select</refname> <refpurpose> Wybiera wiersze </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>array</type><methodname>pg_select</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> <methodparam><type>string</type><parameter>table_name</parameter></methodparam> <methodparam><type>array</type><parameter>assoc_array</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>options</parameter></methodparam> </methodsynopsis> <para> <function>pg_select</function> wybiera wiersze okre¶lone przez tablicê <literal>assoc_array</literal> która zawiera dane w postaci: <literal>kolumna=>warto¶æ</literal>. Je¶li zapytanie siê powiedzie, zwraca tablicê zawieraj±c± wszystkie wiersze i kolumny spe³niaj±ce warunki okre¶lone przez <literal>assoc_array</literal>. Je¶li jest u¿yty parametr <literal>options</literal>, jest on przekazywany do wywo³ania <function>pg_convert</function> z <literal>assoc_array</literal>. </para> <example> <title>pg_select</title> <programlisting role="php"> <![CDATA[ <?php $db = pg_connect ('dbname=foo'); // To jest bezpieczne, gdy¿ $_POST jest konwertowane automatycznie $rec = pg_select($db, 'post_log', $_POST); if ($rec) { echo "Wybrane wiersze:\n"; var_dump($rec); } else { echo "U¿ytkownik wprowadzi³ z³e dane\n"; } ?> ]]> </programlisting> </example> <note> <para> Funkcja eksperymentalna. </para> </note> <para> Zobacz tak¿e <function>pg_convert</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-send-query.xml +++ phpdoc-pl/reference/pgsql/functions/pg-send-query.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <refentry id='function.pg-send-query'> <refnamediv> <refname>pg_send_query</refname> <refpurpose> Wysy³a zapytanie asynchroniczne </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>bool</type><methodname>pg_send_query</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> <methodparam><type>string</type><parameter>query</parameter></methodparam> </methodsynopsis> <methodsynopsis> <type>bool</type><methodname>pg_send_query</methodname> <methodparam><type>string</type><parameter>query</parameter></methodparam> </methodsynopsis> <para> <function>pg_send_query</function> wysy³a zapytanie asynchroniczne do serwera okre¶lonego przez <parameter>connection</parameter>. W przeciwieñstwie do <function>pg_query</function>, pozwala wys³aæ wiele zapytañ do PostgreSQL-a, na nastêpnie pobraæ wyniki jeden po drugim u¿ywaj±c funkcji <function>pg_get_result</function>. Wykonywanie skryptu nie jest blokowane w czasie wykonywania zapytañ. Mo¿esz u¿yæ <function>pg_connection_busy</function> aby sprawdziæ czy po³±czenie jest nie jest zajête (np. wykonuje siê inne zapytanie). Zapytanie mo¿e zostaæ przerwane przez wywo³anie funkcji <function>pg_cancel_query</function>. </para> <para> Tak wiêc u¿ytkownik mo¿e wys³aæ wiele zapytañ jednocze¶nie, ale nie mo¿e ich wysy³aæ je¶li po³±czenie jest zajête. Je¶li zapytanie bêdzie wys³ane gdy po³±czenie jest zajête, bêdzie oczekiwa³o a¿ wykona siê poprzednie zapytanie i utracone zostan± wszystkie wyniki. </para> <para> Zobacz tak¿e <function>pg_query</function>, <function>pg_cancel_query</function>, <function>pg_get_result</function> i <function>pg_connection_busy</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-set-client-encoding.xml +++ phpdoc-pl/reference/pgsql/functions/pg-set-client-encoding.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.16 --> <refentry id="function.pg-set-client-encoding"> <refnamediv> <refname>pg_set_client_encoding</refname> <refpurpose> Ustawia stronê kodow± klienta PostgreSQL-a </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>int</type><methodname>pg_set_client_encoding</methodname> <methodparam choice="opt"><type>resource</type><parameter>connection</parameter></methodparam> <methodparam><type>string</type><parameter>encoding</parameter></methodparam> </methodsynopsis> <para> <function>pg_set_client_encoding</function> ustawia stronê kodow± klienta i zwraca 0 w razie powodzenia lub -1 w razie b³edu. </para> <para> <parameter>encoding</parameter> jest stron± kodow± klienta i mo¿e przyjmowaæ nastêpujace warto¶ci: SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW, UNICODE, MULE_INTERNAL, LATINX (X=1...9), KOI8, WIN, ALT, SJIS, BIG5, WIN1250. Dostêpne strony kodowe zale¿± od PostgreSQL-a i wersji libpq. Sprawd¼ w podrêczniku PostgreSQL jakie s± dostêpne strony kodowe dla twojego PostgreSQL-a. </para> <note> <para> Ta funkcja wymaga PHP-4.0.3 lub nowszego i PostgreSQL-7.0 lub nowszego. Dostêpne strony kodowe zale¿± od wersji PostgreSQL. </para> <para> Ta funkcja by³a poprzednio nazwana <function>pg_setclientencoding</function>. </para> </note> <para> Zobacz tak¿e <function>pg_client_encoding</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-trace.xml +++ phpdoc-pl/reference/pgsql/functions/pg-trace.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.7 --> <refentry id="function.pg-trace"> <refnamediv> <refname>pg_trace</refname> <refpurpose>Uruchamia ¶ledzenie po³±czeñ z PostgreSQL</refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>bool</type><methodname>pg_trace</methodname> <methodparam><type>string</type><parameter>pathname</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>mode</parameter></methodparam> <methodparam choice="opt"><type>resource</type><parameter>connection</parameter></methodparam> </methodsynopsis> <para> <function>pg_trace</function> uruchamia ¶ledzenie po³±czeñ miêdzy klientem a serwerem PostgreSQL-a. Wynik ¶ledzenia jest zapisywany do pliku wskazanego przez <parameter>pathname</parameter>. Aby w pe³ni zrozumieæ wyniki ¶ledzenia potrzebna jest wiedza o szczegó³ach wewnêtrznej komunikacji PostgreSQL-a. Nieobeznani z tymi szczegó³ami, mog± jednak wykorzystaæ t± funkcjê do ¶ledzenia b³êdów w zapytaniach wysy³anych do serwera. Przyk³adowo, wykonuj±c <command>grep '^To backend' trace.log</command> mo¿na zobaczyæ zapytania które by³y wys³ane do serwera. Wiêcej szczegó³ow mo¿na dowiedzieæ siê z podrêcznika PostgreSQL-a. </para> <para> Parametry <parameter>pathname</parameter> i <parameter>mode</parameter> s± takie same jak dla funkcji <function>fopen</function> (domy¶ln± warto¶ci± <parameter>mode</parameter> jest 'w'), <parameter>connection</parameter> wskazuje identyfikator po³±czenia które ma byæ ¶ledzone. Domy¶lnie przyjmowane jest ostatnio otwarte. </para> <para> Funkcja zwraca &true; je¶li <parameter>pathname</parameter> zosta³ pomyslnie otwarty do logowania lub &false; w przeciwnym wypadku. </para> <para> Zobacz tak¿e <function>fopen</function> i <function>pg_untrace</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-tty.xml +++ phpdoc-pl/reference/pgsql/functions/pg-tty.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 --> <refentry id="function.pg-tty"> <refnamediv> <refname>pg_tty</refname> <refpurpose> Zwraca nazwê konsoli tty zwi±zanej z po³±czeniem </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>string</type><methodname>pg_tty</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> </methodsynopsis> <para> <function>pg_tty</function> zwraca nazwê konsoli tty któr± serwer PostgreSQL wykorzystuje do debugowania po³±czenia wskazanego przez <parameter>connection</parameter>. </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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-untrace.xml +++ phpdoc-pl/reference/pgsql/functions/pg-untrace.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.2 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.58 --> <refentry id="function.pg-untrace"> <refnamediv> <refname>pg_untrace</refname> <refpurpose>Wy³±cza ¶ledzenie po³±czeñ PostgreSQL-a</refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>bool</type><methodname>pg_untrace</methodname> <methodparam choice="opt"><type>resource</type><parameter>connection</parameter></methodparam> </methodsynopsis> <para> Wy³±cza ¶ledzenie po³±czeñ uruchomione przez <function>pg_trace</function>. <parameter>connection</parameter> wskazuje po³±czenie które by³o ¶ledzone, domy¶lnie przyjmowane jest ostatnio otwarte. </para> <para> Zawsze zwraca &true;. </para> <para> Zobacz tak¿e <function>pg_trace</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 --> Index: phpdoc-pl/reference/pgsql/functions/pg-update.xml +++ phpdoc-pl/reference/pgsql/functions/pg-update.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.4 Maintainer: Jarek status: ready --> <!-- $Revision: 1.1 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.80 --> <refentry id='function.pg-update'> <refnamediv> <refname>pg_update</refname> <refpurpose> Aktualizuje tabelê. </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>long</type><methodname>pg_update</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> <methodparam><type>string</type><parameter>table_name</parameter></methodparam> <methodparam><type>array</type><parameter>condition</parameter></methodparam> <methodparam><type>array</type><parameter>data</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>options</parameter></methodparam> </methodsynopsis> <para> <function>pg_update</function> aktualizuje wiersze spe³niaj±ce warunki zawarte w <literal>condition</literal> u¿ywaj±ca danych z <literal>data</literal>. Je¶li jest u¿yty parametr <literal>option</literal>, jest on przekazywany do wywo³ania <function>pg_convert</function> z <literal>assoc_array</literal>. <!-- Od t³umacza: orygina³ nie wskazuje dok³adnie czy jako assoc_array nale¿y uznawaæ condition, data czy obie. Z logiki wynika ¿e powinno dotyczyæ to obu tablic. Z braku pe³nej dokumentacji do pg_convert nie mo¿na tego na razie przetestowaæ. 2002-05-19, Jaros³aw Tabor, jarek@srv.pl --> </para> <example> <title>pg_update</title> <programlisting role="php"> <![CDATA[ <?php $db = pg_connect ('dbname=foo'); $data = array('field1'=>'AA', 'field2'=>'BB'); // To jest bezpieczne, gdy¼ $_POST jest konwertowane automatycznie $res = pg_update($db, 'post_log', $_POST, $data); if ($res) { echo "Dane zosta³y zaktualizowane: $res\n"; } else { echo "U¿ytkownik wprowadzi³ b³êdne dane\n"; } ?> ]]> </programlisting> </example> <note> <para> Funkcja eksperymentalna. </para> </note> <para> Zobacz tak¿e <function>pg_convert</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 -->
« previous php.doc (#969345731) next »