Salut à tous,
En fait, je tourne sur cygwin avec postgresql 7.3.2, je créer une fonction de cette forme:
1 2
|
CREATE FUNCTION "add_client"(numeric,character varying,character varying) RETURNS numeric AS 'BEGIN INSERT INTO client VALUES($1,$2,$3);RETURN 1;END;' LANGUAGE 'plpgsql'; |
Il accepte la fonction, qui doit tout simplement ajouter un client dans ma table "Client".
Lorsque j'éxecute la fonction comme ceci:
SELECT add_client(1,'Dupond','Tintin');
Il m'affiche cette erreur :
1 2 3 4 5
|
ERROR : Function add_client(integer,"unknown","unknown") does not exist Unable to identify a function that satisfies the given argument types You may need to add explicit typecasts
Your query:
select add_client(1,'Dupond','Tintin') |
J'ai fouillé un peu partout sur le net mais sans réponse
Merci pour votre aide
ciao
Partager