SQLMonitor 1024 bytelimit ?

Discussion of open issues, suggestions and bugs regarding usage of dbExpress drivers for Oracle in Delphi and C++Builder
Post Reply
marstave
Posts: 2
Joined: Thu 20 Oct 2005 10:20

SQLMonitor 1024 bytelimit ?

Post by marstave » Thu 20 Oct 2005 10:22

How can I use the SQLMonitor to trace sql strings longer than 1024
characters ?

Martin Stave

Paul
Posts: 725
Joined: Thu 28 Oct 2004 14:06

Post by Paul » Mon 31 Oct 2005 12:33

DbxOda have solution for this problem.
Please define the following structure

pMySQLTRACEMsgDesc = ^MySQLTRACEMsgDesc
MySQLTRACEMsgDesc = packed record { trace callback info }
pszTrace : array [0..1023] of Char;
eTraceCat : TRACECat;
ClientData : Integer;
uTotalMsgLen : Word;
PMessage : PChar;
end;

Customize CBInfo:pSQLTRACEDesc parameter to pMySQLTRACEMsgDesc and read pMySQLTRACEMsgDesc(CBInfo).PMessage field.

marstave
Posts: 2
Joined: Thu 20 Oct 2005 10:20

Post by marstave » Mon 31 Oct 2005 15:47

Thanks a lot. It really helped !


regards

Martin Stave

Post Reply