cvs: phpdoc-it /reference/pgsql/functions pg-free-result.xml pg-last-error.xml pg-last-oid.xml pg-lo-close.xml pg-lo-open.xml pg-lo-read-all.xml
pg-lo-read.xml pg-lo-unlink.xml pg-lo-write.xml pg-metadata.xml pg-num-fields.xml pg-num-rows.xml pg-select.xml pg-update.xml
| From: | Marco Cucinato | Date: | Sun, 25 Aug 2002 09:13:14 +0000 |
| Subject: | cvs: phpdoc-it /reference/pgsql/functions pg-free-result.xml pg-last-error.xml pg-last-oid.xml pg-lo-close.xml pg-lo-open.xml pg-lo-read-all.xml pg-lo-read.xml pg-lo-unlink.xml pg-lo-write.xml pg-metadata.xml pg-num-fields.xml pg-num-rows.xml pg-select.xml pg-update.xml |
||
| Groups: | php.doc.it | ||
| Request: | Send a blank email to doc-it+get-74@lists.php.net to get a copy of this message | ||
cucinato Sun Aug 25 05:13:14 2002 EDT
Added files:
/phpdoc-it/reference/pgsql/functions pg-free-result.xml
pg-last-error.xml
pg-last-oid.xml
pg-lo-close.xml pg-lo-open.xml
pg-lo-read-all.xml
pg-lo-read.xml
pg-lo-unlink.xml
pg-lo-write.xml
pg-metadata.xml
pg-num-fields.xml
pg-num-rows.xml pg-select.xml
pg-update.xml
Log:
Initial translation
Index: phpdoc-it/reference/pgsql/functions/pg-free-result.xml +++ phpdoc-it/reference/pgsql/functions/pg-free-result.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.4 Maintainer: cucinato Status: ready --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <!-- CREDITS: fabio,cortesi,denny --> <refentry id="function.pg-free-result"> <refnamediv> <refname>pg_free_result</refname> <refpurpose>Libera la memoria allocata per i risultati</refpurpose> </refnamediv> <refsect1> <title>Descrizione</title> <methodsynopsis> <type>bool</type><methodname>pg_free_result</methodname> <methodparam><type>resource</type><parameter>risultato</parameter></methodparam> </methodsynopsis> <para> <function>pg_free_result</function> deve essere chiamata solo se si è preoccupati di aver usato troppa memoria durante l'esecuzione dello script. Normalmente tutte le aree di memoria allocate per i risultati sono automaticamente deallocate alla fine dell'esecuzione. Se invece si è sicuri di non dover più utilizzare i dati del risultato, è possibile chiamare <function>pg_free_result</function> con la risorsa <parameter>result</parameter> come argomento e la memoria associata verrà liberata. &return.success; </para> <note> <para> Questa funzione si chiamava <literal>pg_freeresult()</literal>. </para> </note> <para> See also <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-it/reference/pgsql/functions/pg-last-error.xml +++ phpdoc-it/reference/pgsql/functions/pg-last-error.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <!-- CREDITS: fabio,cortesi,denny --> <refentry id="function.pg-last-error"> <refnamediv> <refname>pg_last_error</refname> <refpurpose>Restituisce l'ultimo messaggio d'errore di una connessione</refpurpose> </refnamediv> <refsect1> <title>Descrizione</title> <methodsynopsis> <type>string</type><methodname>pg_last_error</methodname> <methodparam choice="opt"><type>resource</type><parameter>connessione</parameter></methodparam> </methodsynopsis> <para> <function>pg_last_error</function> restituisce l'ultimo messaggio di errore della <parameter>connessione</parameter> specificata. </para> <para> I messaggi di errore possono essere sovrascritti da chiamate a funzioni interne a PostgreSQL(libpq). Quindi questa funzione potrebbe non restituire il messaggio di errore corretto, se più errori si sono verificati in una funzione interna di PostgreSQL. </para> <para> Utilizzare <function>pg_result_error</function>, <function>pg_result_status</function> e <function>pg_connection_status</function> per una migliore gestione degli errori. </para> <note> <para> Questa funzione si chiamava <literal>pg_errormessage()</literal>. </para> </note> <para> Vedere anche <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-it/reference/pgsql/functions/pg-last-oid.xml +++ phpdoc-it/reference/pgsql/functions/pg-last-oid.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 --> <!-- CREDITS: fabio,cortesi,denny --> <refentry id="function.pg-last-oid"> <refnamediv> <refname>pg_last_oid</refname> <refpurpose>Restituisce l'oid dell'ultimo oggetto</refpurpose> </refnamediv> <refsect1> <title>Descrizione</title> <methodsynopsis> <type>int</type><methodname>pg_last_oid</methodname> <methodparam><type>resource</type><parameter>risultato</parameter></methodparam> </methodsynopsis> <para> <function>pg_last_oid</function> è utilizzato per recuperare l'<varname>oid</varname> assegnato ad una tupla inserita (record), se la risorsa risultato deriva dall'ultimo comando inviato attraverso <function>pg_query</function>, e se quest'ultimo è un SQL INSERT. Restituisce un intero positivo se esiste un <varname>oid</varname> valido. Restituisce invece &false; in caso di errore o se l'ultimo comnado inviato da <function>pg_query</function> non era un INSERT, oppure se l'INSERT ha fallito. </para> <para> Il campo OID è diventato opzionale dal PostgreSQL 7.2. Quando il campo OID non è definito in una tabella, il programmatore deve utilizzare <function>pg_result_status</function> per controllare se il record è stato inserito con successo. </para> <note> <para> Questa funzione si chiamava <literal>pg_getlastoid()</literal>. </para> </note> <para> Vedere anche <function>pg_query</function> e <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-it/reference/pgsql/functions/pg-lo-close.xml +++ phpdoc-it/reference/pgsql/functions/pg-lo-close.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <!-- CREDITS: fabio,cortesi,denny --> <refentry id="function.pg-lo-close"> <refnamediv> <refname>pg_lo_close</refname> <refpurpose>Chiude un large object</refpurpose> </refnamediv> <refsect1> <title>Descrizione</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> chiude un Large Object. <parameter>large_object</parameter> è una risorsa large object ottenuta attraverso <function>pg_lo_open</function>. </para> <para> Per utilizzare l'interfaccia large object (lo), è necessario includere la chiamata in un blocco di transazione. </para> <note> <para> Questa funzione si chiamava <literal>pg_loclose()</literal>. </para> </note> <para> Vedere anche <function>pg_lo_open</function>, <function>pg_lo_create</function> 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-it/reference/pgsql/functions/pg-lo-open.xml +++ phpdoc-it/reference/pgsql/functions/pg-lo-open.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <!-- CREDITS: fabio,cortesi,denny --> <refentry id="function.pg-lo-open"> <refnamediv> <refname>pg_lo_open</refname> <refpurpose>Apre un large object</refpurpose> </refnamediv> <refsect1> <title>Descrizione</title> <methodsynopsis> <type>resource</type><methodname>pg_lo_open</methodname> <methodparam><type>resource</type><parameter>connessione</parameter></methodparam> <methodparam><type>int</type><parameter>oid</parameter></methodparam> <methodparam><type>string</type><parameter>modo</parameter></methodparam> </methodsynopsis> <para> <function>pg_lo_open</function> apre un Large Object e restituisce una risorsa (riferimento) large object. La risorsa incapsula le informazioni sulla connessione. <parameter>oid</parameter> specifica un oid valido di un large object e <parameter>modo</parameter> può essere "r", "w", o "rw". Restituisce &false; se avviene un errore. </para> <warning> <para> Non chiudere la connessione al database prima di aver chiuso il large object. </para> </warning> <para> Per utilizzare l'interfaccia large object (lo), occorre includere il comando in un blocco di transazione. </para> <note> <para> Questa funzione si chiamava <literal>pg_loopen()</literal>. </para> </note> <para> Vedere anche <function>pg_lo_close</function> e <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-it/reference/pgsql/functions/pg-lo-read-all.xml +++ phpdoc-it/reference/pgsql/functions/pg-lo-read-all.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <!-- CREDITS: fabio,cortesi,denny --> <refentry id="function.pg-lo-read-all"> <refnamediv> <refname>pg_lo_read_all</refname> <refpurpose> Legge interamente un large object e lo manda direttamente al browser </refpurpose> </refnamediv> <refsect1> <title>Descrizione</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> legge un large object e lo passa direttamente al browser dopo aver inviato tutti gli header in attesa. È pensata principalmente per inviare dati binari, come immagini o suoni. Restituisce il numero di byte letti. Restituisce &false; in caso di errore. </para> <para> Per utilizzare l'interfaccia large object (lo), occorre includere il comando in un blocco di transazione. </para> <note> <para> Questa funzione si chiamava <literal>pg_loreadall()</literal>. </para> </note> <para> Vedere anche <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-it/reference/pgsql/functions/pg-lo-read.xml +++ phpdoc-it/reference/pgsql/functions/pg-lo-read.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.74 --> <!-- CREDITS: fabio,cortesi,denny --> <refentry id="function.pg-lo-read"> <refnamediv> <refname>pg_lo_read</refname> <refpurpose>Legge un large object</refpurpose> </refnamediv> <refsect1> <title>Descrizione</title> <methodsynopsis> <type>string</type><methodname>pg_lo_read</methodname> <methodparam><type>resource</type><parameter>large_object</parameter></methodparam> <methodparam><type>int</type><parameter>lung</parameter></methodparam> </methodsynopsis> <para> <function>pg_lo_read</function> legge al massimo <parameter>lung</parameter> byte da un large object e li restituisce sotto forma di stringa. <parameter>large_object</parameter> specifica una risorsa large object valida e <parameter>lung</parameter> specifica la lunghezza massima accettabile del segmento del large object. Restituisce &false; in caso di errore. </para> <para> Per utilizzare l'interfaccia large object (lo), occorre includere il comando in un blocco di transazione. </para> <note> <para> Questa funzione si chiamava <literal>pg_loread()</literal>. </para> </note> <para> Vedere anche <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-it/reference/pgsql/functions/pg-lo-unlink.xml +++ phpdoc-it/reference/pgsql/functions/pg-lo-unlink.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <!-- CREDITS: fabio,cortesi,denny --> <refentry id="function.pg-lo-unlink"> <refnamediv> <refname>pg_lo_unlink</refname> <refpurpose>Cancella un large object</refpurpose> </refnamediv> <refsect1> <title>Descrizione</title> <methodsynopsis> <type>bool</type><methodname>pg_lo_unlink</methodname> <methodparam><type>resource</type><parameter>connession</parameter></methodparam> <methodparam><type>int</type><parameter>oid</parameter></methodparam> </methodsynopsis> <para> <function>pg_lo_unlink</function> cancella un large object identificato da <parameter>oid</parameter>. &return.success; </para> <para> Per utilizzare l'interfaccia large object (lo), occorre includere il comando in un blocco di transazione. </para> <note> <para> Questa funzione si chiamava <literal>pg_lo_unlink()</literal>. </para> </note> <para> Vedere anche <function>pg_lo_create</function> 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-it/reference/pgsql/functions/pg-lo-write.xml +++ phpdoc-it/reference/pgsql/functions/pg-lo-write.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <!-- CREDITS: fabio,cortesi,denny --> <refentry id="function.pg-lo-write"> <refnamediv> <refname>pg_lo_write</refname> <refpurpose>Scrive un large object</refpurpose> </refnamediv> <refsect1> <title>Descrizione</title> <methodsynopsis> <type>int</type><methodname>pg_lo_write</methodname> <methodparam><type>resource</type><parameter>large_object</parameter></methodparam> <methodparam><type>string</type><parameter>dati</parameter></methodparam> </methodsynopsis> <para> <function>pg_lo_write</function> scrive su un large object i dati della variabile <parameter>dati</parameter> e restituisce il numero di byte scritti, oppure &false; in caso di errore. <parameter>large_object</parameter> è una risorsa large object ottenuta attraverso <function>pg_lo_open</function>. </para> <para> Per utilizzare l'interfaccia large object (lo), occorre includere il comando in un blocco di transazione. </para> <note> <para> Questa funzione si chiamava <literal>pg_lo_write()</literal>. </para> </note> <para> Vedere anche <function>pg_lo_create</function> e <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-it/reference/pgsql/functions/pg-metadata.xml +++ phpdoc-it/reference/pgsql/functions/pg-metadata.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.80 --> <!-- CREDITS: fabio,cortesi,denny --> <refentry id='function.pg-metadata'> <refnamediv> <refname>pg_metadata</refname> <refpurpose> Ottiene la definizione di una tabella. </refpurpose> </refnamediv> <refsect1> <title>Descrizione</title> <methodsynopsis> <type>array</type><methodname>pg_metadata</methodname> <methodparam><type>resource</type><parameter>connessione</parameter></methodparam> <methodparam><type>string</type><parameter>nome_tabella</parameter></methodparam> </methodsynopsis> <para> <function>pg_metadata</function> resituisce la definizione della tabella <literal>nome_tabella</literal> sotto forma di array. Se avviane un errore, restituisce &false; </para> <note> <para> Questa funzione è sperimentale. </para> </note> <para> Vedere anche <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-it/reference/pgsql/functions/pg-num-fields.xml +++ phpdoc-it/reference/pgsql/functions/pg-num-fields.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <!-- CREDITS: fabio,cortesi,denny --> <refentry id="function.pg-num-fields"> <refnamediv> <refname>pg_num_fields</refname> <refpurpose>Restituisce il numero di campi</refpurpose> </refnamediv> <refsect1> <title>Descrizione</title> <methodsynopsis> <type>int</type><methodname>pg_num_fields</methodname> <methodparam><type>resource</type><parameter>risultato</parameter></methodparam> </methodsynopsis> <para> <function>pg_num_fields</function> restituisce il numero di campi (colonne) in un <parameter>risultato</parameter> PostgreSQL. L'argomento è una risorsa risultato ottenuta mediante <function>pg_query</function>. Restituisce -1 in caso di errore. </para> <note> <para> Questa funzione si chiamava <literal>pg_numfields()</literal>. </para> </note> <para> Vedere anche <function>pg_num_rows</function> e <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-it/reference/pgsql/functions/pg-num-rows.xml +++ phpdoc-it/reference/pgsql/functions/pg-num-rows.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <!-- CREDITS: fabio,cortesi,denny --> <refentry id="function.pg-num-rows"> <refnamediv> <refname>pg_num_rows</refname> <refpurpose>Restituiscein numero di tuple</refpurpose> </refnamediv> <refsect1> <title>Descrizione</title> <methodsynopsis> <type>int</type><methodname>pg_num_rows</methodname> <methodparam><type>resource</type><parameter>risultato</parameter></methodparam> </methodsynopsis> <para> <function>pg_num_rows</function> restituisce il numero di tuple (righe) in un <parameter>risultato</parameter> PostgreSQL. <parameter>risultato</parameter> è una risorsa risultato ottenuta attraverso <function>pg_query</function>. Restituisce -1 in caso di errore. </para> <note> <para> Utilizzare <function>pg_affected_rows</function> per ottenere il numero di righe modificate da query INSERT, UPDATE and DELETE. </para> </note> <note> <para> Questa funzione si chiamava <literal>pg_numrows()</literal>. </para> </note> <para> Vedere anche <function>pg_num_fields</function> e <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-it/reference/pgsql/functions/pg-select.xml +++ phpdoc-it/reference/pgsql/functions/pg-select.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.5 Maintainer: cucinato Status: ready --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.80 --> <!-- CREDITS: fabio,cortesi,denny --> <refentry id='function.pg-select'> <refnamediv> <refname>pg_select</refname> <refpurpose> Seleziona delle tuple. </refpurpose> </refnamediv> <refsect1> <title>Descrizione</title> <methodsynopsis> <type>array</type><methodname>pg_select</methodname> <methodparam><type>resource</type><parameter>connessione</parameter></methodparam> <methodparam><type>string</type><parameter>nome_tabella</parameter></methodparam> <methodparam><type>array</type><parameter>array_assoc</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>opzioni</parameter></methodparam> </methodsynopsis> <para> <function>pg_select</function> seleziona le tuple specificate da <literal>array_assoc</literal> che ha la forma <literal>campo=>valore</literal>. Se la query ha successo, restituisce un array contenente tutte le tuple e i campi che corrispondono alla condizione specificata da <literal>array_assoc</literal>. Se <literal>opzioni</literal> è specificato, <function>pg_convert</function> viene applicata ad <literal>array_assoc</literal> con le opzioni date. </para> <example> <title>pg_select</title> <programlisting role="php"> <![CDATA[ <?php $db = pg_connect ('dbname=foo'); // La riga seguente è sicura, dal momento che $_POST viene convertita automaticamente $rec = pg_select($db, 'post_log', $_POST); if ($rec) { echo "Record selezionati\n"; var_dump($rec); } else { echo "L'utente ha inviato dati errati\n"; } ?> ]]> </programlisting> </example> <note> <para> Questa funzione è sperimentale. </para> </note> <para> Vedere anche <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-it/reference/pgsql/functions/pg-update.xml +++ phpdoc-it/reference/pgsql/functions/pg-update.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.4 Maintainer: cucinato Status: ready --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.80 --> <!-- CREDITS: fabio,cortesi,denny --> <refentry id='function.pg-update'> <refnamediv> <refname>pg_update</refname> <refpurpose> Modifica le tuple della tabella </refpurpose> </refnamediv> <refsect1> <title>Descrizione</title> <methodsynopsis> <type>long</type><methodname>pg_update</methodname> <methodparam><type>resource</type><parameter>connessione</parameter></methodparam> <methodparam><type>string</type><parameter>nome_tabella</parameter></methodparam> <methodparam><type>array</type><parameter>condizione</parameter></methodparam> <methodparam><type>array</type><parameter>dati</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>opzioni</parameter></methodparam> </methodsynopsis> <para> <function>pg_update</function> aggiorna le tuple che corrispondono a <literal>condizione</literal> con <literal>dati</literal> Se <literal>opzioni</literal> è specificato, <function>pg_convert</function> viene applicata su <literal>array_assoc</literal> con le opzioni date. </para> <example> <title>pg_update</title> <programlisting role="php"> <![CDATA[ <?php $db = pg_connect ('dbname=foo'); $data = array('field1'=>'AA', 'field2'=>'BB'); // La riga seguente è sicura, date che $_POST è convertito automaticamente $res = pg_update($db, 'post_log', $_POST, $data); if ($res) { echo "Dati aggiornati: $res\n"; } else { echo "L'utente ha inviato dati errati\n"; } ?> ]]> </programlisting> </example> <note> <para> Questa funzione è sperimentale. </para> </note> <para> Vedere anche <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-it/reference/pgsql/functions/pg-free-result.xml +++ phpdoc-it/reference/pgsql/functions/pg-free-result.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.4 Maintainer: cucinato Status: ready --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <!-- CREDITS: fabio,cortesi,denny --> <refentry id="function.pg-free-result"> <refnamediv> <refname>pg_free_result</refname> <refpurpose>Libera la memoria allocata per i risultati</refpurpose> </refnamediv> <refsect1> <title>Descrizione</title> <methodsynopsis> <type>bool</type><methodname>pg_free_result</methodname> <methodparam><type>resource</type><parameter>risultato</parameter></methodparam> </methodsynopsis> <para> <function>pg_free_result</function> deve essere chiamata solo se si è preoccupati di aver usato troppa memoria durante l'esecuzione dello script. Normalmente tutte le aree di memoria allocate per i risultati sono automaticamente deallocate alla fine dell'esecuzione. Se invece si è sicuri di non dover più utilizzare i dati del risultato, è possibile chiamare <function>pg_free_result</function> con la risorsa <parameter>result</parameter> come argomento e la memoria associata verrà liberata. &return.success; </para> <note> <para> Questa funzione si chiamava <literal>pg_freeresult()</literal>. </para> </note> <para> See also <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-it/reference/pgsql/functions/pg-last-error.xml +++ phpdoc-it/reference/pgsql/functions/pg-last-error.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <!-- CREDITS: fabio,cortesi,denny --> <refentry id="function.pg-last-error"> <refnamediv> <refname>pg_last_error</refname> <refpurpose>Restituisce l'ultimo messaggio d'errore di una connessione</refpurpose> </refnamediv> <refsect1> <title>Descrizione</title> <methodsynopsis> <type>string</type><methodname>pg_last_error</methodname> <methodparam choice="opt"><type>resource</type><parameter>connessione</parameter></methodparam> </methodsynopsis> <para> <function>pg_last_error</function> restituisce l'ultimo messaggio di errore della <parameter>connessione</parameter> specificata. </para> <para> I messaggi di errore possono essere sovrascritti da chiamate a funzioni interne a PostgreSQL(libpq). Quindi questa funzione potrebbe non restituire il messaggio di errore corretto, se più errori si sono verificati in una funzione interna di PostgreSQL. </para> <para> Utilizzare <function>pg_result_error</function>, <function>pg_result_status</function> e <function>pg_connection_status</function> per una migliore gestione degli errori. </para> <note> <para> Questa funzione si chiamava <literal>pg_errormessage()</literal>. </para> </note> <para> Vedere anche <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-it/reference/pgsql/functions/pg-last-oid.xml +++ phpdoc-it/reference/pgsql/functions/pg-last-oid.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 --> <!-- CREDITS: fabio,cortesi,denny --> <refentry id="function.pg-last-oid"> <refnamediv> <refname>pg_last_oid</refname> <refpurpose>Restituisce l'oid dell'ultimo oggetto</refpurpose> </refnamediv> <refsect1> <title>Descrizione</title> <methodsynopsis> <type>int</type><methodname>pg_last_oid</methodname> <methodparam><type>resource</type><parameter>risultato</parameter></methodparam> </methodsynopsis> <para> <function>pg_last_oid</function> è utilizzato per recuperare l'<varname>oid</varname> assegnato ad una tupla inserita (record), se la risorsa risultato deriva dall'ultimo comando inviato attraverso <function>pg_query</function>, e se quest'ultimo è un SQL INSERT. Restituisce un intero positivo se esiste un <varname>oid</varname> valido. Restituisce invece &false; in caso di errore o se l'ultimo comnado inviato da <function>pg_query</function> non era un INSERT, oppure se l'INSERT ha fallito. </para> <para> Il campo OID è diventato opzionale dal PostgreSQL 7.2. Quando il campo OID non è definito in una tabella, il programmatore deve utilizzare <function>pg_result_status</function> per controllare se il record è stato inserito con successo. </para> <note> <para> Questa funzione si chiamava <literal>pg_getlastoid()</literal>. </para> </note> <para> Vedere anche <function>pg_query</function> e <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-it/reference/pgsql/functions/pg-lo-close.xml +++ phpdoc-it/reference/pgsql/functions/pg-lo-close.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <!-- CREDITS: fabio,cortesi,denny --> <refentry id="function.pg-lo-close"> <refnamediv> <refname>pg_lo_close</refname> <refpurpose>Chiude un large object</refpurpose> </refnamediv> <refsect1> <title>Descrizione</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> chiude un Large Object. <parameter>large_object</parameter> è una risorsa large object ottenuta attraverso <function>pg_lo_open</function>. </para> <para> Per utilizzare l'interfaccia large object (lo), è necessario includere la chiamata in un blocco di transazione. </para> <note> <para> Questa funzione si chiamava <literal>pg_loclose()</literal>. </para> </note> <para> Vedere anche <function>pg_lo_open</function>, <function>pg_lo_create</function> 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-it/reference/pgsql/functions/pg-lo-open.xml +++ phpdoc-it/reference/pgsql/functions/pg-lo-open.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <!-- CREDITS: fabio,cortesi,denny --> <refentry id="function.pg-lo-open"> <refnamediv> <refname>pg_lo_open</refname> <refpurpose>Apre un large object</refpurpose> </refnamediv> <refsect1> <title>Descrizione</title> <methodsynopsis> <type>resource</type><methodname>pg_lo_open</methodname> <methodparam><type>resource</type><parameter>connessione</parameter></methodparam> <methodparam><type>int</type><parameter>oid</parameter></methodparam> <methodparam><type>string</type><parameter>modo</parameter></methodparam> </methodsynopsis> <para> <function>pg_lo_open</function> apre un Large Object e restituisce una risorsa (riferimento) large object. La risorsa incapsula le informazioni sulla connessione. <parameter>oid</parameter> specifica un oid valido di un large object e <parameter>modo</parameter> può essere "r", "w", o "rw". Restituisce &false; se avviene un errore. </para> <warning> <para> Non chiudere la connessione al database prima di aver chiuso il large object. </para> </warning> <para> Per utilizzare l'interfaccia large object (lo), occorre includere il comando in un blocco di transazione. </para> <note> <para> Questa funzione si chiamava <literal>pg_loopen()</literal>. </para> </note> <para> Vedere anche <function>pg_lo_close</function> e <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-it/reference/pgsql/functions/pg-lo-read-all.xml +++ phpdoc-it/reference/pgsql/functions/pg-lo-read-all.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <!-- CREDITS: fabio,cortesi,denny --> <refentry id="function.pg-lo-read-all"> <refnamediv> <refname>pg_lo_read_all</refname> <refpurpose> Legge interamente un large object e lo manda direttamente al browser </refpurpose> </refnamediv> <refsect1> <title>Descrizione</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> legge un large object e lo passa direttamente al browser dopo aver inviato tutti gli header in attesa. È pensata principalmente per inviare dati binari, come immagini o suoni. Restituisce il numero di byte letti. Restituisce &false; in caso di errore. </para> <para> Per utilizzare l'interfaccia large object (lo), occorre includere il comando in un blocco di transazione. </para> <note> <para> Questa funzione si chiamava <literal>pg_loreadall()</literal>. </para> </note> <para> Vedere anche <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-it/reference/pgsql/functions/pg-lo-read.xml +++ phpdoc-it/reference/pgsql/functions/pg-lo-read.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.74 --> <!-- CREDITS: fabio,cortesi,denny --> <refentry id="function.pg-lo-read"> <refnamediv> <refname>pg_lo_read</refname> <refpurpose>Legge un large object</refpurpose> </refnamediv> <refsect1> <title>Descrizione</title> <methodsynopsis> <type>string</type><methodname>pg_lo_read</methodname> <methodparam><type>resource</type><parameter>large_object</parameter></methodparam> <methodparam><type>int</type><parameter>lung</parameter></methodparam> </methodsynopsis> <para> <function>pg_lo_read</function> legge al massimo <parameter>lung</parameter> byte da un large object e li restituisce sotto forma di stringa. <parameter>large_object</parameter> specifica una risorsa large object valida e <parameter>lung</parameter> specifica la lunghezza massima accettabile del segmento del large object. Restituisce &false; in caso di errore. </para> <para> Per utilizzare l'interfaccia large object (lo), occorre includere il comando in un blocco di transazione. </para> <note> <para> Questa funzione si chiamava <literal>pg_loread()</literal>. </para> </note> <para> Vedere anche <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-it/reference/pgsql/functions/pg-lo-unlink.xml +++ phpdoc-it/reference/pgsql/functions/pg-lo-unlink.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <!-- CREDITS: fabio,cortesi,denny --> <refentry id="function.pg-lo-unlink"> <refnamediv> <refname>pg_lo_unlink</refname> <refpurpose>Cancella un large object</refpurpose> </refnamediv> <refsect1> <title>Descrizione</title> <methodsynopsis> <type>bool</type><methodname>pg_lo_unlink</methodname> <methodparam><type>resource</type><parameter>connession</parameter></methodparam> <methodparam><type>int</type><parameter>oid</parameter></methodparam> </methodsynopsis> <para> <function>pg_lo_unlink</function> cancella un large object identificato da <parameter>oid</parameter>. &return.success; </para> <para> Per utilizzare l'interfaccia large object (lo), occorre includere il comando in un blocco di transazione. </para> <note> <para> Questa funzione si chiamava <literal>pg_lo_unlink()</literal>. </para> </note> <para> Vedere anche <function>pg_lo_create</function> 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-it/reference/pgsql/functions/pg-lo-write.xml +++ phpdoc-it/reference/pgsql/functions/pg-lo-write.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <!-- CREDITS: fabio,cortesi,denny --> <refentry id="function.pg-lo-write"> <refnamediv> <refname>pg_lo_write</refname> <refpurpose>Scrive un large object</refpurpose> </refnamediv> <refsect1> <title>Descrizione</title> <methodsynopsis> <type>int</type><methodname>pg_lo_write</methodname> <methodparam><type>resource</type><parameter>large_object</parameter></methodparam> <methodparam><type>string</type><parameter>dati</parameter></methodparam> </methodsynopsis> <para> <function>pg_lo_write</function> scrive su un large object i dati della variabile <parameter>dati</parameter> e restituisce il numero di byte scritti, oppure &false; in caso di errore. <parameter>large_object</parameter> è una risorsa large object ottenuta attraverso <function>pg_lo_open</function>. </para> <para> Per utilizzare l'interfaccia large object (lo), occorre includere il comando in un blocco di transazione. </para> <note> <para> Questa funzione si chiamava <literal>pg_lo_write()</literal>. </para> </note> <para> Vedere anche <function>pg_lo_create</function> e <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-it/reference/pgsql/functions/pg-metadata.xml +++ phpdoc-it/reference/pgsql/functions/pg-metadata.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.80 --> <!-- CREDITS: fabio,cortesi,denny --> <refentry id='function.pg-metadata'> <refnamediv> <refname>pg_metadata</refname> <refpurpose> Ottiene la definizione di una tabella. </refpurpose> </refnamediv> <refsect1> <title>Descrizione</title> <methodsynopsis> <type>array</type><methodname>pg_metadata</methodname> <methodparam><type>resource</type><parameter>connessione</parameter></methodparam> <methodparam><type>string</type><parameter>nome_tabella</parameter></methodparam> </methodsynopsis> <para> <function>pg_metadata</function> resituisce la definizione della tabella <literal>nome_tabella</literal> sotto forma di array. Se avviane un errore, restituisce &false; </para> <note> <para> Questa funzione è sperimentale. </para> </note> <para> Vedere anche <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-it/reference/pgsql/functions/pg-num-fields.xml +++ phpdoc-it/reference/pgsql/functions/pg-num-fields.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <!-- CREDITS: fabio,cortesi,denny --> <refentry id="function.pg-num-fields"> <refnamediv> <refname>pg_num_fields</refname> <refpurpose>Restituisce il numero di campi</refpurpose> </refnamediv> <refsect1> <title>Descrizione</title> <methodsynopsis> <type>int</type><methodname>pg_num_fields</methodname> <methodparam><type>resource</type><parameter>risultato</parameter></methodparam> </methodsynopsis> <para> <function>pg_num_fields</function> restituisce il numero di campi (colonne) in un <parameter>risultato</parameter> PostgreSQL. L'argomento è una risorsa risultato ottenuta mediante <function>pg_query</function>. Restituisce -1 in caso di errore. </para> <note> <para> Questa funzione si chiamava <literal>pg_numfields()</literal>. </para> </note> <para> Vedere anche <function>pg_num_rows</function> e <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-it/reference/pgsql/functions/pg-num-rows.xml +++ phpdoc-it/reference/pgsql/functions/pg-num-rows.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <!-- CREDITS: fabio,cortesi,denny --> <refentry id="function.pg-num-rows"> <refnamediv> <refname>pg_num_rows</refname> <refpurpose>Restituiscein numero di tuple</refpurpose> </refnamediv> <refsect1> <title>Descrizione</title> <methodsynopsis> <type>int</type><methodname>pg_num_rows</methodname> <methodparam><type>resource</type><parameter>risultato</parameter></methodparam> </methodsynopsis> <para> <function>pg_num_rows</function> restituisce il numero di tuple (righe) in un <parameter>risultato</parameter> PostgreSQL. <parameter>risultato</parameter> è una risorsa risultato ottenuta attraverso <function>pg_query</function>. Restituisce -1 in caso di errore. </para> <note> <para> Utilizzare <function>pg_affected_rows</function> per ottenere il numero di righe modificate da query INSERT, UPDATE and DELETE. </para> </note> <note> <para> Questa funzione si chiamava <literal>pg_numrows()</literal>. </para> </note> <para> Vedere anche <function>pg_num_fields</function> e <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-it/reference/pgsql/functions/pg-select.xml +++ phpdoc-it/reference/pgsql/functions/pg-select.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.5 Maintainer: cucinato Status: ready --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.80 --> <!-- CREDITS: fabio,cortesi,denny --> <refentry id='function.pg-select'> <refnamediv> <refname>pg_select</refname> <refpurpose> Seleziona delle tuple. </refpurpose> </refnamediv> <refsect1> <title>Descrizione</title> <methodsynopsis> <type>array</type><methodname>pg_select</methodname> <methodparam><type>resource</type><parameter>connessione</parameter></methodparam> <methodparam><type>string</type><parameter>nome_tabella</parameter></methodparam> <methodparam><type>array</type><parameter>array_assoc</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>opzioni</parameter></methodparam> </methodsynopsis> <para> <function>pg_select</function> seleziona le tuple specificate da <literal>array_assoc</literal> che ha la forma <literal>campo=>valore</literal>. Se la query ha successo, restituisce un array contenente tutte le tuple e i campi che corrispondono alla condizione specificata da <literal>array_assoc</literal>. Se <literal>opzioni</literal> è specificato, <function>pg_convert</function> viene applicata ad <literal>array_assoc</literal> con le opzioni date. </para> <example> <title>pg_select</title> <programlisting role="php"> <![CDATA[ <?php $db = pg_connect ('dbname=foo'); // La riga seguente è sicura, dal momento che $_POST viene convertita automaticamente $rec = pg_select($db, 'post_log', $_POST); if ($rec) { echo "Record selezionati\n"; var_dump($rec); } else { echo "L'utente ha inviato dati errati\n"; } ?> ]]> </programlisting> </example> <note> <para> Questa funzione è sperimentale. </para> </note> <para> Vedere anche <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-it/reference/pgsql/functions/pg-update.xml +++ phpdoc-it/reference/pgsql/functions/pg-update.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.4 Maintainer: cucinato Status: ready --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.80 --> <!-- CREDITS: fabio,cortesi,denny --> <refentry id='function.pg-update'> <refnamediv> <refname>pg_update</refname> <refpurpose> Modifica le tuple della tabella </refpurpose> </refnamediv> <refsect1> <title>Descrizione</title> <methodsynopsis> <type>long</type><methodname>pg_update</methodname> <methodparam><type>resource</type><parameter>connessione</parameter></methodparam> <methodparam><type>string</type><parameter>nome_tabella</parameter></methodparam> <methodparam><type>array</type><parameter>condizione</parameter></methodparam> <methodparam><type>array</type><parameter>dati</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>opzioni</parameter></methodparam> </methodsynopsis> <para> <function>pg_update</function> aggiorna le tuple che corrispondono a <literal>condizione</literal> con <literal>dati</literal> Se <literal>opzioni</literal> è specificato, <function>pg_convert</function> viene applicata su <literal>array_assoc</literal> con le opzioni date. </para> <example> <title>pg_update</title> <programlisting role="php"> <![CDATA[ <?php $db = pg_connect ('dbname=foo'); $data = array('field1'=>'AA', 'field2'=>'BB'); // La riga seguente è sicura, date che $_POST è convertito automaticamente $res = pg_update($db, 'post_log', $_POST, $data); if ($res) { echo "Dati aggiornati: $res\n"; } else { echo "L'utente ha inviato dati errati\n"; } ?> ]]> </programlisting> </example> <note> <para> Questa funzione è sperimentale. </para> </note> <para> Vedere anche <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 -->