dbMonitor 3.0.2 with dbxida, FB2.5RC2, Delphi2009
On queries with string parameters, the parameters are reported incorrectly on the "Parameters" tab for dbMonitor.
Specifically, for a parameter of type "WideString", the first character is omitted and for a parameter of type "String", the first two characters are omitted.
Note that the parameter values are reaching the database correctly since the correct data is returned.
Possibly this is a clue:
function TIBCParamDesc.GetAsAnsiString: AnsiString;
var
ValPtr, Ptr: IntPtr;
Len: integer;
begin
case FDataType of
dtString:
ValPtr := IntPtr(Integer(FValue) + 2); // <<<<<<
If the "+2" is removed, the parameters are reported correctly in dbMonitor
Similarly, in "function TIBCParamDesc.GetAsWideString: WideString;"