> And the detExecute log DOES show the SQL with parameters replaced (as
> I imagined).
What version?I used last stable 1.4 release and test this code :
> procedure TForm1.SQLConnector1Log(Sender: TSQLConnection;EventType:
> TDBEventType; const Msg: String); begin ShowMessage(Msg); end;
>
>
> procedure TForm1.Button1Click(Sender: TObject); begin
> SQLConnector1.LogEvents:=[detExecute]; SQLConnector1.Connected:=True;
> SQLQuery1.SQL.Text:='INSERT INTO test(id,name) VALUE(:id,:name);';
> SQLQuery1.ParamByName('id').AsInteger:=1;
> SQLQuery1.ParamByName('name').AsString:='AABBCC'; SQLQuery1.ExecSQL;
>
> end;
>
ShowMessage just show :
> TQuerySQLStatement : INSERT INTO test(id,name) VALUE(:id,:name);
Am I doing something wrong? :/
Ara
--
http://www.fastmail.com - A no graphics, no pop-ups email service
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus