cvs: phpdoc-pl /reference/ingres-ii/functions ingres-errsqlstate.xml ingres-query.xml
| From: | Jaroslaw Glowacki | Date: | Fri, 17 Aug 2007 07:49:03 +0000 |
| Subject: | cvs: phpdoc-pl /reference/ingres-ii/functions ingres-errsqlstate.xml ingres-query.xml | ||
| Groups: | php.doc.pl | ||
| Request: | Send a blank email to doc-pl+get-1109@lists.php.net to get a copy of this message | ||
joeaccord Fri Aug 17 07:49:03 2007 UTC
Added files:
/phpdoc-pl/reference/ingres-ii/functions ingres-errsqlstate.xml
ingres-query.xml
Log:
new files
http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ingres-ii/functions/ingres-errsqlstate.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ingres-ii/functions/ingres-errsqlstate.xml +++ phpdoc-pl/reference/ingres-ii/functions/ingres-errsqlstate.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.6 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry xml:id="function.ingres-errsqlstate" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ingres_errsqlstate</refname> <refpurpose>Zwraca ostatnio wygenerowany kod b³êdu SQLSTATE</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>string</type><methodname>ingres_errsqlstate</methodname> <methodparam choice="opt"><type>resource</type><parameter>identyfikator_po³±czenia</parameter></methodparam> </methodsynopsis> <para> Zwraca ³añcuch zawieraj±cy ostatni kod SQLSTATE, lub NULL je¶li nie wyst±pi³ ¿aden b³±d. </para> <para> Je¶li podano <parameter>identyfikator_po³±czenia</parameter> <function>ingres_errsqlstate</function> zwraca ostatni numer b³êdu dla tego po³±czenia. Je¶li nie podano identyfikatora po³±czenia <function>ingres_errsqlstate</function> zwraca numer ostatniego b³êdu dla domy¶lnego po³±czenia. </para> <para> Ta funkcja, <function>ingres_errsqlstate</function>, powinna byæ zawsze wywo³ana po wykonaniu zapytania. Wywo³anie innej funkcji przed <function>ingres_errsqlstate</function>, wyzeruje lub zmieni dla niej kod ostatniego b³êdu Ingres. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>link</parameter></term> <listitem> <para> Identyfikator po³±czenia. Je¶li nie zostanie podany, u¿ywane jest ostatnio otwarte po³±czenie. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Zwraca ³añcuch zawieraj±cy ostatni kod SQLSTATE, lub NULL je¶li nie wyst±pi³ ¿aden b³±d. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Przyk³ad <function>ingres_errsqlstate</function></title> <programlisting role="php"> <![CDATA[ <?php ingres_connect($baza_danych, $uzytkownik, $haslo); ingres_query("select * from nazwa_tabeli"); $error_sqlstate = ingres_errsqlstate(); if ( !is_null($error_sqlstate) ) { echo "Wyst±pi³ b³±d - " . $error_sqlstate; } ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>ingres_errno</function></member> <member><function>ingres_error</function></member> </simplelist> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ingres-ii/functions/ingres-query.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ingres-ii/functions/ingres-query.xml +++ phpdoc-pl/reference/ingres-ii/functions/ingres-query.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.8 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry xml:id="function.ingres-query" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ingres_query</refname> <refpurpose>Wysy³a zapytanie SQL do serwera Ingres II</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ingres_query</methodname> <methodparam><type>string</type><parameter>zapytanie</parameter></methodparam> <methodparam choice="opt"><type>resource</type><parameter>identyfikator_po³±czenia</parameter></methodparam> </methodsynopsis> <para> <function>ingres_query</function> wysy³a <parameter>zapytanie</parameter> do serwera Ingres. </para> <para> Zapytanie staje siê czê¶ci± aktualnie otwartej transakcji. Je¶li transakcja nie by³a otwarta, <function>ingres_query</function> otwiera now± transakcjê. Aby zamkn±æ transakcjê, powinni¶my wcze¶niej wywo³aæ <function>ingres_commit</function> aby potwierdziæ zmiany zrobione w bazie danych, lub wywo³aæ <function>ingres_rollback</function> aby wycofaæ zmiany. Kiedy koñczy siê wykonywanie skryptu, wszystkie otwarte transakcje s± wycofywane (poprzez wywo³anie <function>ingres_rollback</function>). Mo¿emy równie¿ u¿yæ <function>ingres_autocommit</function> przed otwarciem nowej transakcji aby ka¿de wys³ane zapytanie SQL by³o bezpo¶rednio potwierdzane. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>zapytanie</parameter></term> <listitem> <para> Prawid³owe zapytanie SQL (patrz - przewodnik Ingres SQL). </para> <para> Pewne typy zapytañ SQL nie mog± byæ wys³ane za pomoc± tej funkcji: <itemizedlist> <listitem> <simpara> zamkniêcie po³±czenia (zobacz <function>ingres_close</function>) </simpara> </listitem> <listitem> <simpara> potwierdzenie transakcji (zobacz <function>ingres_commit</function>) </simpara> </listitem> <listitem> <simpara> ustanowienie po³±czenia (zobacz <function>ingres_connect</function>) </simpara> </listitem> <listitem> <simpara> roz³±czenie z serwerem (zobacz <function>ingres_close</function>) </simpara> </listitem> <listitem> <simpara>pobranie informacji o zdarzeniu na serwerze</simpara> </listitem> <listitem> <simpara>przygotowanie zapytania do potwierdzenia</simpara> </listitem> <listitem> <simpara> wycofanie transakcji (zobacz <function>ingres_rollback</function>) </simpara> </listitem> <listitem><simpara>punkty zapisu transakcji</simpara></listitem> <listitem> <simpara> ustawienie automatycznego zatwierdzania (zobacz <function>ingres_autocommit</function>) </simpara> </listitem> <listitem> <simpara>wszystkie zapytania zwi±zane z kursorami s± nieobs³ugiwane</simpara> </listitem> </itemizedlist> </para> </listitem> </varlistentry> <varlistentry> <term><parameter>identyfikator_po³±czenia</parameter></term> <listitem> <para> Identyfikator po³±czenia. Je¶li nie zostanie podany, u¿ywane jest ostatnio otwarte po³±czenie. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.success; </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Przyk³ad <function>ingres_query</function></title> <programlisting role="php"> <![CDATA[ <?php ingres_connect($baza_danych, $uzytkownik, $haslo); ingres_query("select * from nazwa_tabeli"); while ($wiersz = ingres_fetch_row()) { echo $wiersz[1]; echo $wiersz[2]; } ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>ingres_fetch_array</function></member> <member><function>ingres_fetch_object</function></member> <member><function>ingres_fetch_row</function></member> <member><function>ingres_commit</function></member> <member><function>ingres_rollback</function></member> <member><function>ingres_autocommit</function></member> </simplelist> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ingres-ii/functions/ingres-errsqlstate.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ingres-ii/functions/ingres-errsqlstate.xml +++ phpdoc-pl/reference/ingres-ii/functions/ingres-errsqlstate.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.6 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry xml:id="function.ingres-errsqlstate" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ingres_errsqlstate</refname> <refpurpose>Zwraca ostatnio wygenerowany kod b³êdu SQLSTATE</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>string</type><methodname>ingres_errsqlstate</methodname> <methodparam choice="opt"><type>resource</type><parameter>identyfikator_po³±czenia</parameter></methodparam> </methodsynopsis> <para> Zwraca ³añcuch zawieraj±cy ostatni kod SQLSTATE, lub NULL je¶li nie wyst±pi³ ¿aden b³±d. </para> <para> Je¶li podano <parameter>identyfikator_po³±czenia</parameter> <function>ingres_errsqlstate</function> zwraca ostatni numer b³êdu dla tego po³±czenia. Je¶li nie podano identyfikatora po³±czenia <function>ingres_errsqlstate</function> zwraca numer ostatniego b³êdu dla domy¶lnego po³±czenia. </para> <para> Ta funkcja, <function>ingres_errsqlstate</function>, powinna byæ zawsze wywo³ana po wykonaniu zapytania. Wywo³anie innej funkcji przed <function>ingres_errsqlstate</function>, wyzeruje lub zmieni dla niej kod ostatniego b³êdu Ingres. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>link</parameter></term> <listitem> <para> Identyfikator po³±czenia. Je¶li nie zostanie podany, u¿ywane jest ostatnio otwarte po³±czenie. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Zwraca ³añcuch zawieraj±cy ostatni kod SQLSTATE, lub NULL je¶li nie wyst±pi³ ¿aden b³±d. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Przyk³ad <function>ingres_errsqlstate</function></title> <programlisting role="php"> <![CDATA[ <?php ingres_connect($baza_danych, $uzytkownik, $haslo); ingres_query("select * from nazwa_tabeli"); $error_sqlstate = ingres_errsqlstate(); if ( !is_null($error_sqlstate) ) { echo "Wyst±pi³ b³±d - " . $error_sqlstate; } ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>ingres_errno</function></member> <member><function>ingres_error</function></member> </simplelist> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ingres-ii/functions/ingres-query.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ingres-ii/functions/ingres-query.xml +++ phpdoc-pl/reference/ingres-ii/functions/ingres-query.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.8 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry xml:id="function.ingres-query" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ingres_query</refname> <refpurpose>Wysy³a zapytanie SQL do serwera Ingres II</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ingres_query</methodname> <methodparam><type>string</type><parameter>zapytanie</parameter></methodparam> <methodparam choice="opt"><type>resource</type><parameter>identyfikator_po³±czenia</parameter></methodparam> </methodsynopsis> <para> <function>ingres_query</function> wysy³a <parameter>zapytanie</parameter> do serwera Ingres. </para> <para> Zapytanie staje siê czê¶ci± aktualnie otwartej transakcji. Je¶li transakcja nie by³a otwarta, <function>ingres_query</function> otwiera now± transakcjê. Aby zamkn±æ transakcjê, powinni¶my wcze¶niej wywo³aæ <function>ingres_commit</function> aby potwierdziæ zmiany zrobione w bazie danych, lub wywo³aæ <function>ingres_rollback</function> aby wycofaæ zmiany. Kiedy koñczy siê wykonywanie skryptu, wszystkie otwarte transakcje s± wycofywane (poprzez wywo³anie <function>ingres_rollback</function>). Mo¿emy równie¿ u¿yæ <function>ingres_autocommit</function> przed otwarciem nowej transakcji aby ka¿de wys³ane zapytanie SQL by³o bezpo¶rednio potwierdzane. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>zapytanie</parameter></term> <listitem> <para> Prawid³owe zapytanie SQL (patrz - przewodnik Ingres SQL). </para> <para> Pewne typy zapytañ SQL nie mog± byæ wys³ane za pomoc± tej funkcji: <itemizedlist> <listitem> <simpara> zamkniêcie po³±czenia (zobacz <function>ingres_close</function>) </simpara> </listitem> <listitem> <simpara> potwierdzenie transakcji (zobacz <function>ingres_commit</function>) </simpara> </listitem> <listitem> <simpara> ustanowienie po³±czenia (zobacz <function>ingres_connect</function>) </simpara> </listitem> <listitem> <simpara> roz³±czenie z serwerem (zobacz <function>ingres_close</function>) </simpara> </listitem> <listitem> <simpara>pobranie informacji o zdarzeniu na serwerze</simpara> </listitem> <listitem> <simpara>przygotowanie zapytania do potwierdzenia</simpara> </listitem> <listitem> <simpara> wycofanie transakcji (zobacz <function>ingres_rollback</function>) </simpara> </listitem> <listitem><simpara>punkty zapisu transakcji</simpara></listitem> <listitem> <simpara> ustawienie automatycznego zatwierdzania (zobacz <function>ingres_autocommit</function>) </simpara> </listitem> <listitem> <simpara>wszystkie zapytania zwi±zane z kursorami s± nieobs³ugiwane</simpara> </listitem> </itemizedlist> </para> </listitem> </varlistentry> <varlistentry> <term><parameter>identyfikator_po³±czenia</parameter></term> <listitem> <para> Identyfikator po³±czenia. Je¶li nie zostanie podany, u¿ywane jest ostatnio otwarte po³±czenie. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.success; </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Przyk³ad <function>ingres_query</function></title> <programlisting role="php"> <![CDATA[ <?php ingres_connect($baza_danych, $uzytkownik, $haslo); ingres_query("select * from nazwa_tabeli"); while ($wiersz = ingres_fetch_row()) { echo $wiersz[1]; echo $wiersz[2]; } ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>ingres_fetch_array</function></member> <member><function>ingres_fetch_object</function></member> <member><function>ingres_fetch_row</function></member> <member><function>ingres_commit</function></member> <member><function>ingres_rollback</function></member> <member><function>ingres_autocommit</function></member> </simplelist> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->