It works when I use param (ftString) in WHERE clause
It works when I use param (ftInteger) in ORDER BY clause
BUT! when I use param (ftString) in ORDER By clause its not working!
In example:
this sql code I put in Zquery:
this one going to .pas:SELECT *
FROM production
WHERE (deleted=0 OR deleted= :del)
ORDER BY :z
datamodule2.production.Active:=false;
datamodule2.production.Params.ParamByName('z').value:=column.FieldName;
datamodule2.production.Active:=true;
AND its not working.
BUT! If i put in .pas this:
everything is ok! why?a:=column.Field.FieldNo;
datamodule2.production.Active:=false;
datamodule2.production.Params.ParamByName('z').value:=a;
datamodule2.production.Active:=true;
how to use param like ftString in ORDER BY clase?
P.S. I use MYSQL 5.1, Zeos 6.6.6 stable, Delphi7