query.ParamByName
Posted: Fri 03 Oct 2014 10:25
Hi,
msquery.sql.text:
When i try:
then only first update execute ok. In the second update all parameters values are NULL.
Lazarus 1.2.4 + FPC 2.6.4, tested on MSSQL 2008 r2 and above
msquery.sql.text:
Code: Select all
update table_master set date=:pdate where id_master=:pid;
update table_details set date=:pdate where id_master=:pidCode: Select all
msquery.ParamByName('pdate').AsDateTime:=Now;
msquery.ParamByName('pid').AsInteger:=1;
msquery.ExecSQLLazarus 1.2.4 + FPC 2.6.4, tested on MSSQL 2008 r2 and above