Can I get _evaluated_ query string as debug ?
Posted: Thu 10 Sep 2020 08:02
Is there any way to read out the evaluated query string, for debug purposes ?
Example: I have a TUniQuery "q"
Now I would like to read out from q the final SQL sent to the server:
Update: I can see from other posts (although using PgSQL) that it apparently is not possible to do. Can this be put on the wish list ? The query object must be able to compile the entire string.
Example: I have a TUniQuery "q"
Code: Select all
q.SQL.text := 'select * from products where id = :theid';
q.paramByName('theid').asString := '123';
Code: Select all
select * from products where id = '123';