mirror of
https://github.com/php/doc-it.git
synced 2026-03-25 08:02:09 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/it/trunk@314554 c90b9560-bf6c-de11-be94-00142212c4b1
70 lines
2.6 KiB
XML
70 lines
2.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!-- splitted from ./it/functions/pgsql.xml, last change in rev 1.16 -->
|
|
<!-- last change to 'pg-escape-bytea' in en/ tree in rev 1.61 -->
|
|
<!-- EN-Revision: n/a Maintainer: cucinato Status: ready -->
|
|
<!-- OLD-Revision: 1.70/EN.1.61 -->
|
|
<!-- CREDITS: fabio,cortesi,denny -->
|
|
<refentry xml:id='function.pg-escape-bytea' xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>pg_escape_bytea</refname>
|
|
<refpurpose>
|
|
Aggiunge le sequenze di escape ai dati binari nel tipo bytea
|
|
</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Descrizione</title>
|
|
<methodsynopsis>
|
|
<type>string</type><methodname>pg_escape_bytea</methodname>
|
|
<methodparam><type>string</type><parameter>dati</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
<function>pg_escape_bytea</function> aggiunge le sequenze di escape
|
|
nei dati di tipo bytea. Restituisce una stringa con le sequenze.
|
|
</para>
|
|
<note>
|
|
<para>
|
|
Quando si esegue una SELECT su un tipo bytea, PostgreSQL restituisce dei byte formattati in ottale
|
|
e con il prefisso \ (es. \032). Agli utenti è lasciato il compito di convertire questi valori
|
|
in formato binario.
|
|
</para>
|
|
<para>
|
|
Questa funzione richiede una versione di PostgreSQL pari o superiore alla 7.2. Con PostgreSQL
|
|
7.2.0 e 7.2.1, il tipo bytea richiede un cast quando si abilita
|
|
il supporto multi-byte. Es. <literal>INSERT INTO tabella (immagine)
|
|
VALUES ('$immagine_con_escape'::bytea);</literal> PostgreSQL 7.2.2 e
|
|
successivi non necessitano del cast. L'eccezione è che quando le codifiche di carattere
|
|
del client e del backend non corrispondono, ci possono essere errori
|
|
del flusso multi-byte. L'utente deve effettuare un cast a bytea per evitare questo errore.
|
|
</para>
|
|
<para>
|
|
Le nuove versioni di PostgreSQL avranno il supporto per la funzione di unescape. Il supporto per
|
|
la funzione unescape verrà aggiunto non appena disponibile.
|
|
</para>
|
|
</note>
|
|
<para>
|
|
See also <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:"~/.phpdoc/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
|
|
-->
|