Delphi 2010, Zeos 7 and parameters
Posted: 24.03.2010, 22:42
Hello!
I noticed a strange behaviour of Zeos7 on Delphi 2010. If I execute something like this:
Qry.Sql.Text := 'INSERT INTO names Values (:ID, :FIRST, :LAST)';
Qry.ParameterByName('ID').AsInteger := 9;
Qry.ParameterByName('FIRST').AsString := 'X';
Qry.ParameterByName('LAST').AsString := 'Y';
Qry.ExecSQL;
Instead of this:
ID FIRST LAST
--------------------
9 X Y
I get table values like this:
ID FIRST LAST
--------------------
9 9 9
I hecked the param values just before execution and the values are OK. I think it's somewhere inside Zeos.
Hope it helps to improve my favorite components
I noticed a strange behaviour of Zeos7 on Delphi 2010. If I execute something like this:
Qry.Sql.Text := 'INSERT INTO names Values (:ID, :FIRST, :LAST)';
Qry.ParameterByName('ID').AsInteger := 9;
Qry.ParameterByName('FIRST').AsString := 'X';
Qry.ParameterByName('LAST').AsString := 'Y';
Qry.ExecSQL;
Instead of this:
ID FIRST LAST
--------------------
9 X Y
I get table values like this:
ID FIRST LAST
--------------------
9 9 9
I hecked the param values just before execution and the values are OK. I think it's somewhere inside Zeos.
Hope it helps to improve my favorite components