Hi
I use EurekaLog, and i want it to add sql query into error report.
Is it possible to get what sql query was send to server from TMyConnection or anythere else?
Thanks,
Eimis
How to get last executed sql query?
DB Monitor is not a solution - EurekaLog cannot take anything from it, and DB monitor is not running on client's PC's.
So i made some workaround - TMySQLMonitor has OnSQL event - i write every SQL into temp var (always overwriting last value).
And if exception is caught by EurekaLog, i use that temp var as last known send SQL to server.
It looks a little bit slow for me,
i did not measured changes in performance, but it this is not a straight forward way i think,
but if there is not anything faster, it suites for me
So i made some workaround - TMySQLMonitor has OnSQL event - i write every SQL into temp var (always overwriting last value).
And if exception is caught by EurekaLog, i use that temp var as last known send SQL to server.
It looks a little bit slow for me,
i did not measured changes in performance, but it this is not a straight forward way i think,
but if there is not anything faster, it suites for me