Rechercher une page de manuel
create_conversion
Langue: en
Version: 2007-09-16 (mandriva - 22/10/07)
Section: 7 (Divers)
NAME
CREATE CONVERSION - define a new encoding conversionSYNOPSIS
CREATE [ DEFAULT ] CONVERSION name
FOR source_encoding TO dest_encoding FROM funcname
DESCRIPTION
CREATE CONVERSION defines a new conversion between character set encodings. Conversion names may be used in the convert function to specify a particular encoding conversion. Also, conversions that are marked DEFAULT can be used for automatic encoding conversion between client and server. For this purpose, two conversions, from encoding A to B and from encoding B to A, must be defined.
To be able to create a conversion, you must have EXECUTE privilege on the function and CREATE privilege on the destination schema.
PARAMETERS
- DEFAULT
- The DEFAULT clause indicates that this conversion is the default for this particular source to destination encoding. There should be only one default encoding in a schema for the encoding pair.
- name
- The name of the conversion. The conversion name may be schema-qualified. If it is not, the conversion is defined in the current schema. The conversion name must be unique within a schema.
- source_encoding
- The source encoding name.
- dest_encoding
- The destination encoding name.
- funcname
- The function used to perform the conversion. The function name may be schema-qualified. If it is not, the function will be looked up in the path.
The function must have the following signature:
conv_proc( integer, -- source encoding ID integer, -- destination encoding ID cstring, -- source string (null terminated C string) internal, -- destination (fill with a null terminated C string) integer -- source string length ) RETURNS void;
NOTES
Use DROP CONVERSION to remove user-defined conversions.
The privileges required to create a conversion may be changed in a future release.
EXAMPLES
To create a conversion from encoding UTF8 to LATIN1 using myfunc:
CREATE CONVERSION myconv FOR 'UTF8' TO 'LATIN1' FROM myfunc;
COMPATIBILITY
CREATE CONVERSION is a PostgreSQL extension. There is no CREATE CONVERSION statement in the SQL standard.
SEE ALSO
ALTER CONVERSION [alter_conversion(7)], CREATE FUNCTION [create_function(l)], DROP CONVERSION [drop_conversion(l)]-!- kiorky was kicked from #debian-fr by jb [c'est cela, oui]
-!- kiorky [~kiorky@lxxx-1-172.n.club-internet.fr] has joined #debian-fr
< ptitlouis> c'est l'assemblee générale des op ou quoi ? :)
< arachne> hahaha !
-!- kiorky was kicked from #debian-fr by jb [baballe ? Mag ?]
-!- kiorky [~kiorky@lxxx-1-172.n.club-internet.fr] has joined #debian-fr
-!- mode/#debian-fr [+o Magnum3] by ChanServ
-!- kiorky was kicked from #debian-fr by Magnum3 [baballe !!!]
< arachne> jb 15 - 0 Magnum3
-!- kiorky [~kiorky@lxxx-1-172.n.club-internet.fr] has joined #debian-fr
-!- kiorky was kicked from #debian-fr by nou [engagement !]
-!- kiorky [~kiorky@lxxx-1-172.n.club-internet.fr] has joined #debian-fr
-!- kiorky was kicked from #debian-fr by Magnum3 [paf !]
-!- kiorky [~kiorky@lxxx-1-172.n.club-internet.fr] has joined #debian-fr
< Subdino> rofl
< bernard> il se passe quoi là?
< sekhmetal> chut :)
-!- kiorky was kicked from #debian-fr by jb [reprise]
-!- kiorky [~kiorky@lxxx-1-172.n.club-internet.fr] has joined #debian-fr
-!- kiorky was kicked from #debian-fr by Magnum3 [passe à nou]
-!- mode/#debian-fr [+o ptitlouis] by ChanServ
-!- kiorky [~kiorky@lxxx-1-172.n.club-internet.fr] has joined #debian-fr
-!- kiorky was kicked from #debian-fr by ptitlouis [ptitlouis]
< teclo> ding ding
-!- kiorky [~kiorky@lxxx-1-172.n.club-internet.fr] has joined #debian-fr
-!- kiorky was kicked from #debian-fr by Magnum3 [POUF]
-!- kiorky [~kiorky@lxxx-1-172.n.club-internet.fr] has joined #debian-fr
-!- kiorky was kicked from #debian-fr by ptitlouis [dehors]
<@ptitlouis> :)
-!- kiorky [~kiorky@lxxx-1-172.n.club-internet.fr] has joined #debian-fr
-!- kiorky was kicked from #debian-fr by jb [*schbonk*]
< teclo> Heu, l'auto-rejoin, c'est bon pour les utilisateur mIRC
-!- kiorky [~kiorky@lxxx-1-172.n.club-internet.fr] has joined #debian-fr
-!- kiorky was kicked from #debian-fr by Magnum3 [ça rebondit bien hein ?]
-!- kiorky [~kiorky@lxxx-1-172.n.club-internet.fr] has joined #debian-fr
-!- kiorky was kicked from #debian-fr by ptitlouis [pfffffff]
< crevette> vous arretere de jouer au jokari tout seul
< sekhmetal> bon, elle va crever cette balle si ça continue
-!- kiorky [~kiorky@lxxx-1-172.n.club-internet.fr] has joined #debian-fr
-!- kiorky was kicked from #debian-fr by jb [*schbonk* *schbonk*]
< crevette> je veux jouer aussi au jokari kick
-!- crevette was kicked from #debian-fr by nou [pas de prb ! :)]
-- @ops in "Roland Garros" --
#debian-fr
Contenus ©2006-2008 Benjamin Poulain
Design ©2006-2008 Maxime Vantorre