Error 707

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
assapan
Posts: 2
Joined: Fri 05 Aug 2016 09:52

Error 707

Post by assapan » Fri 05 Aug 2016 10:02

Hi , I got an error [FireDAC][Stan]-707. L'index est hors limites pour le paramètre (paramètre [%d], index [%s], limites [0..%d]) when in query contains "???" .
Request works fine when TitreEvenement doesn't contains "???"
Can someone help ?
here is the Sql.text
INSERT INTO evenements (idCalendriers,DebutEvenement,FinEvenement,TitreEvenement,Lieu,Description,idReservation,idbaptemes,idenmaintenance,idaeroclub) values(163,:debut,:fin,"(R) F-BFES xxx ???-LP","ici","du 04/08/2016 10:30:00\nau 04/08/2016 11:00:00\n--------------\n",1143,NULL,NULL,35)

Code: Select all

  Q := CreateQuery;
  try
    Try
      Q.Connection.StartTransaction;
      Q.SQL.Text := SQL_INSERT + const_EVENEMENTS + ' (' //
        + const_EVENEMENTS_IDCALENDRIERS //
        + ',' + const_EVENEMENTS_DEBUTEVENEMENT //
        + ',' + const_EVENEMENTS_FINEVENEMENT //
        + ',' + const_EVENEMENTS_TITREEVENEMENT //
        + ',' + const_EVENEMENTS_LIEU //
        + ',' + const_EVENEMENTS_DESCRIPTION //
        + ',' + const_EVENEMENTS_IDRESERVATION //
        + ',' + const_EVENEMENTS_IDBAPTEMES //
        + ',' + const_EVENEMENTS_IDENMAINTENANCE //
        + ',' + const_EVENEMENTS_IDAEROCLUB //
        + ') values(' //
        + idCalendrier.ToSql //
       + ',:debut' //
       + ',:fin' //
        + ',' + Titre.ToSql //
        + ',' + Lieu.ToSql //
        + ',' + Description.ToSql //
        + ',' + idReservation.ToSqlNull //
        + ',' + idBapteme.ToSqlNull //
        + ',' + idEnMaintenance.ToSqlNull //
        + ',' + idaeroclub.ToSql //
        + ')'; //

      Q.ParamByName('debut').AsDateTime := Debut;
      Q.ParamByName('fin').AsDateTime := Fin;
      Q.ExecSQL;
      Result := Last_insert_id;
      Q.Connection.Commit;
    except
      Q.Connection.Rollback;
      raise;

    End;

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Error 707

Post by ViktorV » Fri 05 Aug 2016 12:50

The provided error means that you are using FireDAC instead of MyDAC. We provide support only for users of our products. To solve the issue, please contact FireDAC technical support.

assapan
Posts: 2
Joined: Fri 05 Aug 2016 09:52

Re: Error 707

Post by assapan » Fri 05 Aug 2016 13:07

Sorry i Were thinking Firedac was a MyDac product !

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Error 707

Post by ViktorV » Fri 05 Aug 2016 13:54

If you have any questions concerning our products, please don't hesitate to contact us - and we will try to help you resolve them.

Post Reply