cvs: phpdoc-it /reference/uodbc/functions odbc-fetch-array.xml odbc-fetch-object.xml odbc-field-scale.xml odbc-prepare.xml

From: Date: Wed, 18 May 2005 12:17:38 +0000
Subject: cvs: phpdoc-it /reference/uodbc/functions odbc-fetch-array.xml odbc-fetch-object.xml odbc-field-scale.xml odbc-prepare.xml
Groups: php.doc.it 
Request: Send a blank email to doc-it+get-719@lists.php.net to get a copy of this message
darvina Wed May 18 08:17:38 2005 EDT Modified files: /phpdoc-it/reference/uodbc/functions odbc-fetch-array.xml odbc-fetch-object.xml odbc-field-scale.xml odbc-prepare.xml Log: Sync to En tree

http://cvs.php.net/diff.php/phpdoc-it/reference/uodbc/functions/odbc-fetch-array.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-it/reference/uodbc/functions/odbc-fetch-array.xml diff -u phpdoc-it/reference/uodbc/functions/odbc-fetch-array.xml:1.2 phpdoc-it/reference/uodbc/functions/odbc-fetch-array.xml:1.3 --- phpdoc-it/reference/uodbc/functions/odbc-fetch-array.xml:1.2 Wed Apr 17 03:08:45 2002 +++ phpdoc-it/reference/uodbc/functions/odbc-fetch-array.xml Wed May 18 08:17:36 2005 @@ -1,27 +1,103 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./it/functions/uodbc.xml, last change in rev 1.16 --> -<!-- last change to 'odbc-fetch-array' in en/ tree in rev 1.29 --> -<!-- EN-Revision: 1.2 Maintainer: darvina Status: ready --> -<!-- OLD-Revision: 1.39/EN.1.29 --> - <refentry id='function.odbc-fetch-array'> - <refnamediv> - <refname>odbc_fetch_array</refname> - <refpurpose> - Restituisce una riga in un array associativo - </refpurpose> - </refnamediv> - <refsect1> - <title>Descrizione</title> - <methodsynopsis> - <type>array</type><methodname>odbc_fetch_array</methodname> - <methodparam><type>resource</type><parameter>resultato</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>numero_riga</parameter></methodparam> - </methodsynopsis> - <para> - &warn.undocumented.func; - </para> - </refsect1> - </refentry> +<!-- EN-Revision: 1.3 Maintainer: darvina Status: ready --> +<refentry id="function.odbc-fetch-array"> + <refnamediv> + <refname>odbc_fetch_array</refname> + <refpurpose>Scarica una riga da un risultato in una matrice</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>array</type><methodname>odbc_fetch_array</methodname> + <methodparam><type>resource</type><parameter>result</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>rownumber</parameter></methodparam> + </methodsynopsis> + <para> + Scarica, in una <type>matrice</type> associativa, da una query ODBC. Vedere + nel successivo log delle modifiche per sapere quando questa funzione è disponibile. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>result</parameter></term> + <listitem> + <para> + Risorsa risultato da <function>odbc_exec</function>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>rownumber</parameter></term> + <listitem> + <para> + Opzionale, indica quale nnumero di riga recuperare. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Restituisce una matrice corrispondente alla riga scaricata, oppure &false; se non + vi sono righe successive. + </para> + </refsect1> + + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>4.3.3</entry> + <entry> + La funzione è disponibile nella vesione compilata con il supporto per IBM DB2 o UnixODBC. + </entry> + </row> + <row> + <entry>4.3.2</entry> + <entry> + Questa funzione esiste nella versione per Windows. + </entry> + </row> + <row> + <entry>4.0.2</entry> + <entry> + Questa funzione esiste nella versione compilata con il supporto DBMaker. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>odbc_fetch_row</function></member> + <member><function>odbc_fetch_object</function></member> + <member><function>odbc_num_rows</function></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-it/reference/uodbc/functions/odbc-fetch-object.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-it/reference/uodbc/functions/odbc-fetch-object.xml diff -u phpdoc-it/reference/uodbc/functions/odbc-fetch-object.xml:1.2 phpdoc-it/reference/uodbc/functions/odbc-fetch-object.xml:1.3 --- phpdoc-it/reference/uodbc/functions/odbc-fetch-object.xml:1.2 Wed Apr 17 03:08:45 2002 +++ phpdoc-it/reference/uodbc/functions/odbc-fetch-object.xml Wed May 18 08:17:36 2005 @@ -1,27 +1,103 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./it/functions/uodbc.xml, last change in rev 1.16 --> -<!-- last change to 'odbc-fetch-object' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: darvina Status: ready --> -<!-- OLD-Revision: 1.39/EN.1.2 --> - <refentry id='function.odbc-fetch-object'> - <refnamediv> - <refname>odbc_fetch_object</refname> - <refpurpose> - Restituisce una riga di risultato come un oggetto - </refpurpose> - </refnamediv> - <refsect1> - <title>Descrizione</title> - <methodsynopsis> - <type>object</type><methodname>odbc_fetch_object</methodname> - <methodparam><type>resource</type><parameter>risultato</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>NumeroRiga</parameter></methodparam> - </methodsynopsis> - <para> - &warn.undocumented.func; - </para> - </refsect1> - </refentry> +<!-- EN-Revision: 1.3 Maintainer: darvina Status: ready --> +<refentry id="function.odbc-fetch-object"> + <refnamediv> + <refname>odbc_fetch_object</refname> + <refpurpose>Scarica una riga da un risultato come oggetto</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>object</type><methodname>odbc_fetch_object</methodname> + <methodparam><type>resource</type><parameter>result</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>rownumber</parameter></methodparam> + </methodsynopsis> + <para> + Scarica un <type>oggetto</type> da una query ODBC. Vedere + nel successivo log delle modifiche per sapere quando questa funzione è disponibile. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>result</parameter></term> + <listitem> + <para> + Risorsa risultato da <function>odbc_exec</function>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>rownumber</parameter></term> + <listitem> + <para> + Opzionale, indica quale nnumero di riga recuperare. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Restituisce un oggetto corrispondente alla riga scaricata, oppure &false; se non + vi sono righe successive. + </para> + </refsect1> + + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>4.3.3</entry> + <entry> + La funzione è disponibile nella vesione compilata con il supporto per IBM DB2 o UnixODBC. + </entry> + </row> + <row> + <entry>4.3.2</entry> + <entry> + Questa funzione esiste nella versione per Windows. + </entry> + </row> + <row> + <entry>4.0.2</entry> + <entry> + Questa funzione esiste nella versione compilata con il supporto DBMaker. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>odbc_fetch_row</function></member> + <member><function>odbc_fetch_array</function></member> + <member><function>odbc_num_rows</function></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-it/reference/uodbc/functions/odbc-field-scale.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-it/reference/uodbc/functions/odbc-field-scale.xml diff -u phpdoc-it/reference/uodbc/functions/odbc-field-scale.xml:1.3 phpdoc-it/reference/uodbc/functions/odbc-field-scale.xml:1.4 --- phpdoc-it/reference/uodbc/functions/odbc-field-scale.xml:1.3 Fri Jan 9 15:30:57 2004 +++ phpdoc-it/reference/uodbc/functions/odbc-field-scale.xml Wed May 18 08:17:36 2005 @@ -1,8 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/uodbc.xml, last change in rev 1.10 --> -<!-- last change to 'odbc-field-scale' in en/ tree in rev 1.3 --> -<!-- EN-Revision: 1.3 Maintainer: darvina Status: ready --> -<!-- OLD-Revision: 1.39/EN.1.3 --> +<!-- EN-Revision: 1.4 Maintainer: darvina Status: ready --> <refentry id="function.odbc-field-scale"> <refnamediv> <refname>odbc_field_scale</refname> @@ -11,13 +9,13 @@ <refsect1> <title>Descrizione</title> <methodsynopsis> - <type>string</type><methodname>odbc_field_scale</methodname> + <type>int</type><methodname>odbc_field_scale</methodname> <methodparam><type>resource</type><parameter>id_risultato</parameter></methodparam> <methodparam><type>int</type><parameter>numero_campo</parameter></methodparam> </methodsynopsis> <para> All'interno di un set di righe, referenziate dall'identificativo - di risultato ODBC fornito, la funzione <function>odbc_field_precision</function> + di risultato ODBC fornito, la funzione <function>odbc_field_scale</function> restituisce la scala del campo indicato dal numero di campo indicato. </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-it/reference/uodbc/functions/odbc-prepare.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-it/reference/uodbc/functions/odbc-prepare.xml diff -u phpdoc-it/reference/uodbc/functions/odbc-prepare.xml:1.2 phpdoc-it/reference/uodbc/functions/odbc-prepare.xml:1.3 --- phpdoc-it/reference/uodbc/functions/odbc-prepare.xml:1.2 Wed Apr 17 03:08:47 2002 +++ phpdoc-it/reference/uodbc/functions/odbc-prepare.xml Wed May 18 08:17:36 2005 @@ -1,8 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/uodbc.xml, last change in rev 1.10 --> -<!-- last change to 'odbc-prepare' in en/ tree in rev 1.5 --> -<!-- EN-Revision: 1.2 Maintainer: darvina Status: ready --> -<!-- OLD-Revision: 1.39/EN.1.5 --> +<!-- EN-Revision: 1.3 Maintainer: darvina Status: ready --> <refentry id="function.odbc-prepare"> <refnamediv> <refname>odbc_prepare</refname> @@ -23,6 +21,30 @@ correttamente. L'identificativo restituito può essere utilizzato successivamente per eseguire l'espressione utilizzando la funzione <function>odbc_execute</function>. </para> + <para> + Alcuni database (tipo IBM DB2, MS SQL server e Oracle) gestiscono le + le stored procedure che accettano parametri di tipo IN, INOUT e OUT come + definito nelle specifiche ODBC. Tuttavia il driver Unified ODBC + supporta soltanto i parametri di tipo IN. + </para> + <para> + Nel seguente codice, <varname>$res</varname> sarà valido soltanto + se tutti i tre parametri per myproc sono di tipo IN: + <programlisting role='php'> +<![CDATA[<?php +$a = 1; +$b = 2; +$c = 3; +$stmt = odbc_prepare($conn, 'CALL myproc(?,?,?)'); +$res = odbc_execute($stmt, array($a, $b, $c)); +?> +]]> + </programlisting> + Se occorre utilizzare stored procedure che richiedono parametri INOUT od OUT, + si suggerisce di utilizzare i moduli nativi del database + (ad esempio, <link linkend='ref.mssql'>mssql</link> per MS SQL Server, + o <link linkend='ref.mssql'>oci8</link> per Oracle). + </para> </refsect1> </refentry>
« previous php.doc.it (#719) next »