Re: please need help - tableau dans function

From: "david forums" <dforums(at)vieonet(dot)com>
To: "Froggy / Froggy Corp(dot)" <froggy(at)froggycorp(dot)com>
Cc: pgsql-fr-generale(at)postgresql(dot)org
Subject: Re: please need help - tableau dans function
Date: 2005-12-05 22:16:11
Message-ID: op.s1bz49g7kmgc14@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-fr-generale

Bonsoir

Je précise que c'est sur l'appel de la function que j'ai un problème pas
sur ça création.

david

Le Mon, 05 Dec 2005 17:50:51 -0000, Froggy / Froggy Corp.
<froggy(at)froggycorp(dot)com> a écrit:

> Et avec CREATE OR REPLACE FUNCTION "public"."checkIpValidity" (inet,
> text[], character varying,
>> character varying) RETURNS boolean ?
>
> david forums wrote:
>>
>> Bonjour
>>
>> J'avais déja ecrit qil y a quelques jours à la liste concernant ce
>> problème, et je n'ai toujours pas eu de réponse qui fonctionnez.
>> Merci de
>> votre aide
>>
>> Voila la déclaration de la function :
>> CREATE FUNCTION "checkIpValidity"(inet, text[], character varying,
>> character varying) RETURNS boolean
>>
>> voila les différents appel que j'ai tenté :
>> select public."checkIpValid" (inet '127.0.0.1',text
>> 'ARRAY[RF98QLDF,AOIEZR323G,QDQS]',CHAR'clickr',CHAR'clkr');
>>
>> select public."checkIpValid" (inet '127.0.0.1',text
>> '{RF98QLDF,AOIEZR323G,QDQS}',CHAR'clickr',CHAR'clkr');
>>
>> select public."checkIpValid" (inet '127.0.0.1','{text
>> ["RF98QLDF","AOIEZR323G","QDQS"]}',CHAR'clickr',CHAR'clkr');
>>
>> select public."checkIpValid" (inet
>> '127.0.0.1',text'{"RF98QLDF","AOIEZR323G","QDQS"}',CHAR'clickr',CHAR'clkr')
>>
>> select public."checkIpValid" (inet
>> '127.0.0.1',text"['RF98QLDF','AOIEZR323G','QDQS']",CHAR 'clickr',CHAR
>> 'clkr') ;
>>
>> a part les erreur de syntaxe qu'il n'accepte pas il renvoie :
>> RREUR: la fonction public.checkIpValid(inet, text, character,
>> character)
>> n'existe pas
>> ASTUCE : Aucune fonction ne correspond au nom donné et aux types
>> d'arguments. Vous devez ajouter des conversions explicites de
>> type.explicit type casts.
>>
>> le problème ce situe au niveau du champ text qui a été déclaré
>> comme un
>> array et qui n'est plus concidéré comme tel dans l'appel.
>>
>> Merci pour votre aide, c assez urgent je suis un peu bloqué.
>>
>> Cordialement
>>
>> David
>>
>> ---------------------------(end of broadcast)---------------------------
>> TIP 1: if posting/reading through Usenet, please send an appropriate
>> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
>> message can get through to the mailing list cleanly
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org
>

In response to

Browse pgsql-fr-generale by date

  From Date Subject
Next Message david bigand forum 2005-12-06 09:56:22 Re: please need help - tableau dans function
Previous Message Damien Griessinger 2005-12-05 21:39:43 Re: please need help - tableau dans function