Bonjour,

J'ai ma bd dans MySQL. J'ai créé une function fct_deblocagepret qui marche très bien.
Je l'appelle ainsi dans mon code:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
with TADOQuery.Create(nil) do
   begin
      ConnectionString := HR.ConnectionString;
      Sql.Add('select fct_deblocagepret(:vparam1,:vparam2,:vparam3)');
      Prepared := true;
      with Parameters do
      begin
         ParamByName('vparam1').Value := '1';
         ParamByName('vparam2').Value := '2';
         ParamByName('vparam3').Value := '2016-05-20';
      end;
      ExecSQL;
      open;
      if(Fields[1].Value ='test') then
        Prompt(mtInformation,'succès.')
      else
        Prompt(mtInformation,'pas ok.');
      Free;
   end;
Comme je l'ai dit plus haut, tout marche sauf la ligne de recuperation de la valeur du paramètre output.
,
cette ligne ne genere une erreur:

Merci